Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 8d8aee8

Browse files
Ashi KrishnanMax Brunsfeld
Ashi Krishnan
and
Max Brunsfeld
committed
Update highlighting to reflect upstream parse tree simplification.
(Also, ignore package-lock.json) Co-Authored-By: Max Brunsfeld <[email protected]>
1 parent 61dea9f commit 8d8aee8

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
package-lock.json

grammars/tree-sitter-regex.cson

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ comments:
1212
scopes:
1313
'pattern': 'string.quoted',
1414
'group_name': 'variable.other.object.property'
15-
'atom_escape, class_escape': 'constant.character.character-class.regexp'
16-
'assertion': 'constant.character.character-class.regexp'
17-
'quantifier': 'storage.modifier'
15+
'identity_escape, control_letter_escape, control_escape, class_escape': 'constant.character.character-class.regexp'
16+
'start_assertion, end_assertion, boundary_assertion, non_boundary_assertion': 'constant.character.character-class.regexp'
17+
'count_quantifier, one_or_more, zero_or_more, optional': 'storage.modifier'
1818
'character_class': 'string.regexp'
1919
'"(", "(?", "(?:", "(?<"': 'punctuation.definition.parameters.begin.bracket.round'
2020
'">", ")"': 'punctuation.definition.parameters.end.bracket.round'

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"coffeelint": "^1.10.1"
2121
},
2222
"dependencies": {
23-
"tree-sitter-javascript": "^0.13.3"
23+
"tree-sitter-javascript": "^0.13.3",
24+
"tree-sitter-regex": "^0.13.0"
2425
}
2526
}

0 commit comments

Comments
 (0)