Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more tests to PHP grammar #26992

Merged
merged 2 commits into from
May 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion extensions/php/test/colorize-fixtures/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ function functionName(){
print("Uncut Point: <strong>$deck[$index]</strong> ");
$starting_point++;
}

function foo bar(){}
?>

</body>
</html>
</html>
90 changes: 89 additions & 1 deletion extensions/php/test/colorize-results/test_php.json
Original file line number Diff line number Diff line change
Expand Up @@ -3233,6 +3233,94 @@
"hc_black": "default: #FFFFFF"
}
},
{
"c": "\t",
"t": "text.html.php meta.embedded.block.php source.php meta.function.php",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "default: #FFFFFF"
}
},
{
"c": "function",
"t": "text.html.php meta.embedded.block.php source.php meta.function.php storage.type.function.php",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",
"dark_vs": "storage.type: #569CD6",
"light_vs": "storage.type: #0000FF",
"hc_black": "storage.type: #569CD6"
}
},
{
"c": " ",
"t": "text.html.php meta.embedded.block.php source.php meta.function.php",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "default: #FFFFFF"
}
},
{
"c": "foo bar",
"t": "text.html.php meta.embedded.block.php source.php meta.function.php entity.name.function.php",
"r": {
"dark_plus": "entity.name.function: #DCDCAA",
"light_plus": "entity.name.function: #795E26",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "entity.name.function: #DCDCAA"
}
},
{
"c": "(",
"t": "text.html.php meta.embedded.block.php source.php meta.function.php punctuation.definition.parameters.begin.php",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "default: #FFFFFF"
}
},
{
"c": ")",
"t": "text.html.php meta.embedded.block.php source.php meta.function.php punctuation.definition.parameters.end.php",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "default: #FFFFFF"
}
},
{
"c": "{",
"t": "text.html.php meta.embedded.block.php source.php punctuation.section.scope.begin.php",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "default: #FFFFFF"
}
},
{
"c": "}",
"t": "text.html.php meta.embedded.block.php source.php punctuation.section.scope.end.php",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "default: #FFFFFF"
}
},
{
"c": "?",
"t": "text.html.php meta.embedded.block.php punctuation.section.embedded.end.php source.php",
Expand Down Expand Up @@ -3321,4 +3409,4 @@
"hc_black": "punctuation.definition.tag: #808080"
}
}
]
]