From be91fe8dbbf09a8b6a573738960333ad7b2b67c5 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Fri, 5 Jul 2019 12:05:34 -0700 Subject: [PATCH] Bump PHP grammar --- extensions/php/cgmanifest.json | 2 +- extensions/php/syntaxes/php.tmLanguage.json | 34 ++++++++++----------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/extensions/php/cgmanifest.json b/extensions/php/cgmanifest.json index 669ade1d4cb..c61d3054042 100644 --- a/extensions/php/cgmanifest.json +++ b/extensions/php/cgmanifest.json @@ -6,7 +6,7 @@ "git": { "name": "language-php", "repositoryUrl": "https://github.com/atom/language-php", - "commitHash": "b896ebfb6f669b8714f419527f047466420efe5c" + "commitHash": "0efbd42e73b52347f95ac5f00c9f288ed4958832" } }, "license": "MIT", diff --git a/extensions/php/syntaxes/php.tmLanguage.json b/extensions/php/syntaxes/php.tmLanguage.json index 43e3de1cd88..a480a7d1946 100644 --- a/extensions/php/syntaxes/php.tmLanguage.json +++ b/extensions/php/syntaxes/php.tmLanguage.json @@ -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/b896ebfb6f669b8714f419527f047466420efe5c", + "version": "https://github.com/atom/language-php/commit/0efbd42e73b52347f95ac5f00c9f288ed4958832", "scopeName": "source.php", "patterns": [ { @@ -1324,7 +1324,7 @@ } }, "contentName": "text.html", - "end": "^(\\3)(?=;?$)", + "end": "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1360,7 +1360,7 @@ } }, "contentName": "text.xml", - "end": "^(\\3)(?=;?$)", + "end": "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1396,7 +1396,7 @@ } }, "contentName": "source.sql", - "end": "^(\\3)(?=;?$)", + "end": "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1432,7 +1432,7 @@ } }, "contentName": "source.js", - "end": "^(\\3)(?=;?$)", + "end": "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1468,7 +1468,7 @@ } }, "contentName": "source.json", - "end": "^(\\3)(?=;?$)", + "end": "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1504,7 +1504,7 @@ } }, "contentName": "source.css", - "end": "^(\\3)(?=;?$)", + "end": "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1540,7 +1540,7 @@ } }, "contentName": "string.regexp.heredoc.php", - "end": "^(\\3)(?=;?$)", + "end": "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1619,7 +1619,7 @@ "name": "invalid.illegal.trailing-whitespace.php" } }, - "end": "^(\\3)(?=;?$)", + "end": "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "1": { "name": "keyword.operator.heredoc.php" @@ -1652,7 +1652,7 @@ } }, "contentName": "text.html", - "end": "^(\\2)(?=;?$)", + "end": "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1685,7 +1685,7 @@ } }, "contentName": "text.xml", - "end": "^(\\2)(?=;?$)", + "end": "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1718,7 +1718,7 @@ } }, "contentName": "source.sql", - "end": "^(\\2)(?=;?$)", + "end": "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1751,7 +1751,7 @@ } }, "contentName": "source.js", - "end": "^(\\2)(?=;?$)", + "end": "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1784,7 +1784,7 @@ } }, "contentName": "source.json", - "end": "^(\\2)(?=;?$)", + "end": "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1817,7 +1817,7 @@ } }, "contentName": "source.css", - "end": "^(\\2)(?=;?$)", + "end": "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1850,7 +1850,7 @@ } }, "contentName": "string.regexp.nowdoc.php", - "end": "^(\\2)(?=;?$)", + "end": "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" @@ -1926,7 +1926,7 @@ "name": "invalid.illegal.trailing-whitespace.php" } }, - "end": "^(\\2)(?=;?$)", + "end": "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])", "endCaptures": { "1": { "name": "keyword.operator.nowdoc.php" -- GitLab