Update grammars

This commit is contained in:
Alex Ross
2021-06-11 10:11:40 +02:00
parent 750390dcd3
commit 57a760e71f
9 changed files with 52 additions and 23 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/2bf736a814e1a58aa63470c1a29590bd02e924e7",
"version": "https://github.com/atom/language-php/commit/4cdf06a944a3b3c8884a6085c6adc6b246911646",
"scopeName": "source.php",
"patterns": [
{
@@ -390,7 +390,7 @@
}
},
{
"begin": "(?i)\\b((?:require|include)(?:_once)?)\\s+",
"begin": "(?i)\\b((?:require|include)(?:_once)?)(\\s+|(?=\\())",
"beginCaptures": {
"1": {
"name": "keyword.control.import.include.php"
@@ -2384,8 +2384,8 @@
"name": "punctuation.separator.delimiter.php"
},
{
"match": "(?i)\\b(null|int|float|bool|string|array|object|callable|iterable|false|mixed)\\b",
"name": "storage.type.php"
"match": "(?i)\\b(null|int|float|bool|string|array|object|callable|iterable|false|mixed|void)\\b",
"name": "keyword.other.type.php"
},
{
"match": "(?i)\\b(parent|self)\\b",
@@ -2809,7 +2809,7 @@
"name": "constant.character.escape.php"
},
"sql-string-double-quoted": {
"begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)",
"begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b)",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.php"
@@ -2883,7 +2883,7 @@
]
},
"sql-string-single-quoted": {
"begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)",
"begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b)",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.php"