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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 7 deletions

View file

@ -4,13 +4,14 @@
"component": {
"type": "git",
"git": {
"name": "atom/language-java",
"repositoryUrl": "https://github.com/atom/language-java",
"commitHash": "29f977dc42a7e2568b39bb6fb34c4ef108eb59b3"
"name": "redhat-developer/vscode-java",
"repositoryUrl": "https://github.com/redhat-developer/vscode-java",
"commitHash": "7a770ab6750b4b09173d98de14eb9792e3432b36"
}
},
"license": "MIT",
"version": "0.32.1"
"description": "This grammar was derived from https://github.com/atom/language-java/blob/master/grammars/java.cson.",
"version": "1.21.0"
}
],
"version": 1

View file

@ -9,7 +9,7 @@
"vscode": "*"
},
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin atom/language-java grammars/java.cson ./syntaxes/java.tmLanguage.json"
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin redhat-developer/vscode-java language-support/java/java.tmLanguage.json ./syntaxes/java.tmLanguage.json"
},
"contributes": {
"languages": [

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"
}
]
},