Closed neerolyte closed 7 years ago
The upstream fix in atom/language-php#245 does resolve this issue, but VSCode 1.15.0 came out without this fix, so it's now broken.
Note I'm testing by patching the installed copy of VSCode directly:
# diff -Naur /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/extensions/php/syntaxes/php.tmLanguage.json{.bak,}
--- /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/php/syntaxes/php.tmLanguage.json.bak 2017-08-16 11:09:32.000000000 +1000
+++ /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/php/syntaxes/php.tmLanguage.json 2017-08-16 11:10:22.000000000 +1000
@@ -2383,7 +2383,7 @@
"name": "punctuation.definition.type.begin.bracket.round.phpdoc.php"
}
},
- "end": "(\\))(\\[\\])",
+ "end": "(\\))(\\[\\])|(?=\\*/)",
"endCaptures": {
"1": {
"name": "punctuation.definition.type.end.bracket.round.phpdoc.php"
Yeah, the fix didn't come soon enough, but it should be fixed in Insiders if you want to use that instead.
Confirmed, this has been fixed in the mean time.
Fixed in Version 1.17.0.
Steps to Reproduce:
This started in the last few days and the current stable version doesn't do it (it's just in insiders atm):
Reproduces without extensions: Yes