feat(spell): upstream spell queries from spellsitter

This commit is contained in:
Lewis Russell 2022-09-06 11:56:27 +01:00 committed by Lewis Russell
parent 3e09c81b4c
commit 2a63ea5665
13 changed files with 49 additions and 0 deletions

View file

@ -186,6 +186,7 @@
(interpreted_string_literal) @string
(raw_string_literal) @string
(raw_string_literal) @spell
(rune_literal) @string
(escape_sequence) @string.escape
@ -202,5 +203,12 @@
(field_declaration name: (field_identifier) @field)
(comment) @comment
(comment) @spell
(ERROR) @error
((interpreted_string_literal) @spell
(#not-has-parent? @spell
import_spec
)
)