mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
fix(vim): fix highlight for pattern
Allow pattern to not contain pattern_multi node to be highlighted
This commit is contained in:
parent
c0783485e8
commit
af71c25edc
1 changed files with 2 additions and 2 deletions
|
|
@ -142,8 +142,8 @@
|
||||||
(integer_literal) @number
|
(integer_literal) @number
|
||||||
(float_literal) @float
|
(float_literal) @float
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
(pattern
|
(pattern) @string.special
|
||||||
(pattern_multi) @string.regex) @string.special
|
(pattern_multi) @string.regex
|
||||||
(filename) @string
|
(filename) @string
|
||||||
((scoped_identifier
|
((scoped_identifier
|
||||||
(scope) @_scope . (identifier) @boolean)
|
(scope) @_scope . (identifier) @boolean)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue