Skip to content

Commit 7cc88ea

Browse files
committed
[java] update grammar
1 parent bd329ff commit 7cc88ea

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

extensions/java/syntaxes/java.tmLanguage.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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-java/commit/0e0ec7966059e3e363868311b3d855014bca95dd",
7+
"version": "https://github.com/atom/language-java/commit/4eb3d906f572ef1999b7ebf0708c841d36b32f0b",
88
"scopeName": "source.java",
99
"name": "Java",
1010
"fileTypes": [
@@ -167,7 +167,7 @@
167167
"name": "keyword.control.new.java"
168168
}
169169
},
170-
"end": "(?=;|\\)|,|:)",
170+
"end": "(?=;|\\)|,|:|}|\\+)",
171171
"patterns": [
172172
{
173173
"include": "#function-call"
@@ -1121,6 +1121,9 @@
11211121
{
11221122
"include": "#all-types"
11231123
},
1124+
{
1125+
"include": "#strings"
1126+
},
11241127
{
11251128
"match": "\\w+",
11261129
"name": "variable.parameter.java"
@@ -1320,7 +1323,7 @@
13201323
]
13211324
},
13221325
"variables": {
1323-
"begin": "(?x:(?=\n (\n (void|boolean|byte|char|short|int|float|long|double)\n |\n ((\\w+\\.)*[A-Z]+\\w*) # e.g. `javax.ws.rs.Response`, or `String`\n )\n ([\\w<>\\[\\],][\\w<>\\[\\],?\\s]*)?\n \\s+\n [A-Za-z_$][\\w$]* # At least one identifier after space\n ([\\w\\[\\],$][\\w\\[\\],\\s]*)? # possibly primitive array or additional identifiers\n \\s*(=|;)\n))",
1326+
"begin": "(?x)\n(?=\n (\n (void|boolean|byte|char|short|int|float|long|double)\n |\n (?>(\\w+\\.)*[A-Z]+\\w*) # e.g. `javax.ws.rs.Response`, or `String`\n )\n (\n <[\\w<>,?\\s]*> # HashMap<Integer, String>\n |\n (\\[\\])* # int[][]\n )?\n \\s+\n [A-Za-z_$][\\w$]* # At least one identifier after space\n ([\\w\\[\\],$][\\w\\[\\],\\s]*)? # possibly primitive array or additional identifiers\n \\s*(=|;)\n)",
13241327
"end": "(?=;)",
13251328
"name": "meta.definition.variable.java",
13261329
"patterns": [

0 commit comments

Comments
 (0)