Adopt new Java grammar! (#188361)

This commit is contained in:
Alex Ross
2023-07-20 13:03:00 +02:00
committed by GitHub
parent da7ab4918d
commit e8f9d7587b
3 changed files with 36 additions and 7 deletions

View File

@@ -1,10 +1,10 @@
{
"information_for_contributors": [
"This file has been converted from https://github.com/atom/language-java/blob/master/grammars/java.cson",
"This file has been converted from https://github.com/redhat-developer/vscode-java/blob/master/language-support/java/java.tmLanguage.json",
"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-java/commit/29f977dc42a7e2568b39bb6fb34c4ef108eb59b3",
"version": "https://github.com/redhat-developer/vscode-java/commit/7a770ab6750b4b09173d98de14eb9792e3432b36",
"name": "Java",
"scopeName": "source.java",
"patterns": [
@@ -1571,6 +1571,31 @@
},
"strings": {
"patterns": [
{
"begin": "\"\"\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.java"
}
},
"end": "\"\"\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.java"
}
},
"name": "string.quoted.triple.java",
"patterns": [
{
"match": "\\\\\"\"\"",
"name": "constant.character.escape.java"
},
{
"match": "\\\\.",
"name": "constant.character.escape.java"
}
]
},
{
"begin": "\"",
"beginCaptures": {
@@ -1632,6 +1657,9 @@
{
"match": "[a-zA-Z$_][\\.a-zA-Z0-9$_]*",
"name": "storage.type.java"
},
{
"include": "#comments"
}
]
},