This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +40
-6
lines changed Expand file tree Collapse file tree 1 file changed +40
-6
lines changed Original file line number Diff line number Diff line change 303303 ' name' : ' meta.function.js'
304304 ' patterns' : [
305305 {
306- ' match' : ' (\\ ?\\ .| \\ . )?([a-zA-Z_$][\\ w$]*)\\ s*(=)\\ s*'
306+ ' match' : ' (\\ ?\\ .)?([a-zA-Z_$][\\ w$]*)\\ s*(=)\\ s*'
307307 ' captures' :
308308 ' 1' :
309- ' name' : ' meta.delimiter.method.js'
309+ ' name' : ' meta.delimiter.method.optional.js'
310+ ' 2' :
311+ ' name' : ' entity.name.function.js'
312+ ' 3' :
313+ ' name' : ' keyword.operator.assignment.js'
314+ }
315+ {
316+ ' match' : ' (\\ .)?([a-zA-Z_$][\\ w$]*)\\ s*(=)\\ s*'
317+ ' captures' :
318+ ' 1' :
319+ ' name' : ' meta.delimiter.method.period.js'
310320 ' 2' :
311321 ' name' : ' entity.name.function.js'
312322 ' 3' :
567577 ' name' : ' meta.function.arrow.js'
568578 ' patterns' : [
569579 {
570- ' match' : ' \\ G(\\ ?\\ .|\\ .)?([a-zA-Z_$][\\ w$]*)\\ s*(=)'
580+ ' match' : ' \\ G(\\ ?\\ .)?([a-zA-Z_$][\\ w$]*)\\ s*(=)'
581+ ' captures' :
582+ ' 1' :
583+ ' name' : ' meta.delimiter.method.optional.js'
584+ ' 2' :
585+ ' name' : ' entity.name.function.js'
586+ ' 3' :
587+ ' name' : ' keyword.operator.assignment.js'
588+ }
589+ {
590+ ' match' : ' \\ G(\\ .)?([a-zA-Z_$][\\ w$]*)\\ s*(=)'
571591 ' captures' :
572592 ' 1' :
573- ' name' : ' meta.delimiter.method.js'
593+ ' name' : ' meta.delimiter.method.period. js'
574594 ' 2' :
575595 ' name' : ' entity.name.function.js'
576596 ' 3' :
11931213 ' match' : ' ,'
11941214 ' name' : ' meta.delimiter.object.comma.js'
11951215 }
1196- {
1197- ' match' : ' \\ .'
1216+ {
1217+ ' match' : ' \\ ? \\ .| \\ .'
11981218 ' name' : ' meta.delimiter.method.js'
1219+ ' patterns' : [
1220+ {
1221+ ' match' : ' \\ .'
1222+ ' name' : ' meta.delimiter.method.period.js'
1223+ }
1224+ {
1225+ ' match' : ' \\ ?\\ .'
1226+ ' name' : ' meta.delimiter.method.optional.js
1227+ }
1228+ ]
1229+ }
1230+ {
1231+ ' match' : ' \\.'
1232+ ' name' : ' meta .delimiter .method .period .js '
11991233 }
12001234 {
12011235 ' match' : ' \\? \\.'
You can’t perform that action at this time.
0 commit comments