Skip to content

Commit 27492b6

Browse files
committed
Fix #34204 - revert problematic brace matching change from language-php
1 parent 2f25895 commit 27492b6

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

extensions/php/syntaxes/php.tmLanguage.json

+10-21
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"information_for_contributors": [
3-
"This file has been converted from https://github.com/atom/language-php/blob/master/grammars/php.cson",
3+
"This file has been converted from https://github.com/roblourens/language-php/blob/revertBraceMatching/grammars/php.cson",
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/atom/language-php/commit/f53f2fc2c3f52468b6d205b8c2bbf79aca95f5b2",
7+
"version": "https://github.com/roblourens/language-php/commit/91d50ab5f871ea2d11b4c511dc0b9a972e4ac5ce",
88
"scopeName": "text.html.php",
99
"name": "PHP",
1010
"fileTypes": [
@@ -1428,6 +1428,14 @@
14281428
{
14291429
"include": "#comments"
14301430
},
1431+
{
1432+
"match": "{",
1433+
"name": "punctuation.section.scope.begin.php"
1434+
},
1435+
{
1436+
"match": "}",
1437+
"name": "punctuation.section.scope.end.php"
1438+
},
14311439
{
14321440
"begin": "(?i)^\\s*(interface)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(extends)?\\s*",
14331441
"beginCaptures": {
@@ -2086,25 +2094,6 @@
20862094
{
20872095
"include": "#string-backtick"
20882096
},
2089-
{
2090-
"begin": "{",
2091-
"beginCaptures": {
2092-
"0": {
2093-
"name": "punctuation.definition.begin.bracket.curly.php"
2094-
}
2095-
},
2096-
"end": "}",
2097-
"endCaptures": {
2098-
"0": {
2099-
"name": "punctuation.definition.end.bracket.curly.php"
2100-
}
2101-
},
2102-
"patterns": [
2103-
{
2104-
"include": "#language"
2105-
}
2106-
]
2107-
},
21082097
{
21092098
"begin": "\\[",
21102099
"beginCaptures": {

0 commit comments

Comments
 (0)