Skip to content

Commit f773b36

Browse files
committed
Clean up bracket access
1 parent 3637c48 commit f773b36

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

grammars/rescript.tmLanguage.json

+2-21
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
}
231231
]
232232
},
233-
"array": {
233+
"bracketAccess": {
234234
"patterns": [
235235
{
236236
"match": "\\[",
@@ -261,22 +261,6 @@
261261
}
262262
]
263263
},
264-
"objectAccess": {
265-
"patterns": [
266-
{
267-
"match": "\\b[a-z_][0-9a-zA-Z_]*(\\[)",
268-
"captures": {
269-
"1": {
270-
"name": "punctuation.section.brackets.begin"
271-
}
272-
}
273-
},
274-
{
275-
"match": "\\]",
276-
"name": "punctuation.section.brackets.end"
277-
}
278-
]
279-
},
280264
"attribute": {
281265
"patterns": [
282266
{
@@ -460,10 +444,7 @@
460444
"include": "#list"
461445
},
462446
{
463-
"include": "#objectAccess"
464-
},
465-
{
466-
"include": "#array"
447+
"include": "#bracketAccess"
467448
},
468449
{
469450
"include": "#jsx"

0 commit comments

Comments
 (0)