Update grammars

This commit is contained in:
Alex Ross
2021-05-04 13:41:54 +02:00
parent 80e5d07b89
commit df15c8e832
8 changed files with 162 additions and 130 deletions

View File

@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/atom/language-php/commit/5fae657cf989701e9594912772daff33249839b3",
"version": "https://github.com/atom/language-php/commit/2bf736a814e1a58aa63470c1a29590bd02e924e7",
"scopeName": "source.php",
"patterns": [
{
@@ -2824,6 +2824,59 @@
},
"name": "string.quoted.double.sql.php",
"patterns": [
{
"match": "(#)(\\\\\"|[^\"])*(?=\"|$)",
"name": "comment.line.number-sign.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "(--)(\\\\\"|[^\"])*(?=\"|$)",
"name": "comment.line.double-dash.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "\\\\[\\\\\"`']",
"name": "constant.character.escape.php"
},
{
"match": "'(?=((\\\\')|[^'\"])*(\"|$))",
"name": "string.quoted.single.unclosed.sql"
},
{
"match": "`(?=((\\\\`)|[^`\"])*(\"|$))",
"name": "string.quoted.other.backtick.unclosed.sql"
},
{
"begin": "'",
"end": "'",
"name": "string.quoted.single.sql",
"patterns": [
{
"include": "#interpolation_double_quoted"
}
]
},
{
"begin": "`",
"end": "`",
"name": "string.quoted.other.backtick.sql",
"patterns": [
{
"include": "#interpolation_double_quoted"
}
]
},
{
"include": "#interpolation_double_quoted"
},
{
"include": "source.sql"
}
@@ -2845,6 +2898,36 @@
},
"name": "string.quoted.single.sql.php",
"patterns": [
{
"match": "(#)(\\\\'|[^'])*(?='|$)",
"name": "comment.line.number-sign.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "(--)(\\\\'|[^'])*(?='|$)",
"name": "comment.line.double-dash.sql",
"captures": {
"1": {
"name": "punctuation.definition.comment.sql"
}
}
},
{
"match": "\\\\[\\\\'`\"]",
"name": "constant.character.escape.php"
},
{
"match": "`(?=((\\\\`)|[^`'])*('|$))",
"name": "string.quoted.other.backtick.unclosed.sql"
},
{
"match": "\"(?=((\\\\\")|[^\"'])*('|$))",
"name": "string.quoted.double.unclosed.sql"
},
{
"include": "source.sql"
}
@@ -3685,4 +3768,4 @@
"name": "keyword.operator.null-coalescing.php"
}
}
}
}