Commit 67b90c7
committed
First pass at
I had an interesting idea to disable various matches like `class` and
`require` from appearing when using `.` notation on objects.
The proposed fix is to create a special `jsObjectProp` match, with a
super high priority, that is used as a `nextgroup` for `.`
It is not assigned any colors or match groups, it simply exists to
disable other items from matching.
This is a very quick pass and I have not really tested it yet, but I
think it could be a very viable, working solutionjsObjectProp
1 parent 3cf8f3d commit 67b90c7
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
223 | 225 | | |
224 | 226 | | |
225 | 227 | | |
| |||
0 commit comments