Skip to content

Commit 931823b

Browse files
committed
Tone down
1 parent 6cad428 commit 931823b

File tree

1 file changed

+3
-75
lines changed

1 file changed

+3
-75
lines changed

lib/java.tmLanguage.json

Lines changed: 3 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@
192192
{
193193
"include": "#comments"
194194
},
195-
{
196-
"include": "#function-call"
197-
},
198195
{
199196
"include": "#all-types"
200197
},
@@ -441,12 +438,6 @@
441438
{
442439
"include": "#storage-modifiers"
443440
},
444-
{
445-
"include": "#method-call"
446-
},
447-
{
448-
"include": "#function-call"
449-
},
450441
{
451442
"include": "#properties"
452443
},
@@ -459,10 +450,6 @@
459450
{
460451
"include": "#all-types"
461452
},
462-
{
463-
"match": "[\\w$]+",
464-
"name": "variable.other.reference.java"
465-
},
466453
{
467454
"match": ",",
468455
"name": "punctuation.separator.delimiter.java"
@@ -864,29 +851,6 @@
864851
}
865852
]
866853
},
867-
"function-call": {
868-
"begin": "([A-Za-z_$][\\w$]*)\\s*(\\()",
869-
"beginCaptures": {
870-
"1": {
871-
"name": "entity.name.function.java"
872-
},
873-
"2": {
874-
"name": "punctuation.definition.parameters.begin.bracket.round.java"
875-
}
876-
},
877-
"end": "\\)",
878-
"endCaptures": {
879-
"0": {
880-
"name": "punctuation.definition.parameters.end.bracket.round.java"
881-
}
882-
},
883-
"name": "meta.function-call.java",
884-
"patterns": [
885-
{
886-
"include": "#code"
887-
}
888-
]
889-
},
890854
"keywords": {
891855
"patterns": [
892856
{
@@ -944,10 +908,6 @@
944908
{
945909
"match": "\\b(const|goto)\\b",
946910
"name": "keyword.reserved.java"
947-
},
948-
{
949-
"match": "\\bvar\\b",
950-
"name": "storage.type.java"
951911
}
952912
]
953913
},
@@ -959,32 +919,6 @@
959919
}
960920
]
961921
},
962-
"method-call": {
963-
"begin": "(\\.)\\s*([A-Za-z_$][\\w$]*)\\s*(\\()",
964-
"beginCaptures": {
965-
"1": {
966-
"name": "punctuation.separator.period.java"
967-
},
968-
"2": {
969-
"name": "entity.name.function.java"
970-
},
971-
"3": {
972-
"name": "punctuation.definition.parameters.begin.bracket.round.java"
973-
}
974-
},
975-
"end": "\\)",
976-
"endCaptures": {
977-
"0": {
978-
"name": "punctuation.definition.parameters.end.bracket.round.java"
979-
}
980-
},
981-
"name": "meta.method-call.java",
982-
"patterns": [
983-
{
984-
"include": "#code"
985-
}
986-
]
987-
},
988922
"methods": {
989923
"begin": "(?!new)(?=[\\w<].*\\s+)(?=([^=/]|/(?!/))+\\()",
990924
"end": "(})|(?=;)",
@@ -1002,7 +936,7 @@
1002936
"begin": "(\\w+)\\s*(\\()",
1003937
"beginCaptures": {
1004938
"1": {
1005-
"name": "entity.name.function.java"
939+
"name": "variable.other.method.declaration.java"
1006940
},
1007941
"2": {
1008942
"name": "punctuation.definition.parameters.begin.bracket.round.java"
@@ -1311,7 +1245,7 @@
13111245
]
13121246
},
13131247
"primitive-types": {
1314-
"match": "\\b(void|boolean|byte|char|short|int|float|long|double)\\b",
1248+
"match": "\\b(void|boolean|byte|char|short|int|float|long|double|var)\\b",
13151249
"name": "storage.type.primitive.java"
13161250
},
13171251
"properties": {
@@ -1321,9 +1255,6 @@
13211255
"captures": {
13221256
"1": {
13231257
"name": "punctuation.separator.period.java"
1324-
},
1325-
"2": {
1326-
"name": "variable.other.object.property.java"
13271258
}
13281259
}
13291260
},
@@ -1332,9 +1263,6 @@
13321263
"captures": {
13331264
"1": {
13341265
"name": "punctuation.separator.period.java"
1335-
},
1336-
"2": {
1337-
"name": "variable.other.property.java"
13381266
}
13391267
}
13401268
},
@@ -1422,7 +1350,7 @@
14221350
]
14231351
},
14241352
"variables": {
1425-
"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\\[\\]]*> # e.g. `HashMap<Integer, String>`, or `List<java.lang.String>`\n )?\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)",
1353+
"begin": "(?x)\n(?=\n (\n (void|boolean|byte|char|short|int|float|long|double|var)\n |\n (?>(\\w+\\.)*[A-Z]+\\w*) # e.g. `javax.ws.rs.Response`, or `String`\n )\n (\n <[\\w<>,\\.?\\s\\[\\]]*> # e.g. `HashMap<Integer, String>`, or `List<java.lang.String>`\n )?\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)",
14261354
"end": "(?=;)",
14271355
"name": "meta.definition.variable.java",
14281356
"patterns": [

0 commit comments

Comments
 (0)