mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(query): highlights for missing nodes
This commit is contained in:
parent
16a51977dc
commit
ca0e04ac31
1 changed files with 5 additions and 0 deletions
|
|
@ -11,6 +11,9 @@
|
|||
(named_node
|
||||
name: (identifier) @variable)
|
||||
|
||||
(missing_node
|
||||
name: (identifier) @variable)
|
||||
|
||||
(field_definition
|
||||
name: (identifier) @variable.member)
|
||||
|
||||
|
|
@ -45,6 +48,8 @@
|
|||
|
||||
"_" @character.special
|
||||
|
||||
"MISSING" @keyword
|
||||
|
||||
((parameters
|
||||
(identifier) @number)
|
||||
(#match? @number "^[-+]?[0-9]+(.[0-9]+)?$"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue