mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
fix(gitignore): hl/capture non-special pattern chars
Capture regular, non-special characters (as `@string.special.path`) allowing them to be highlighted.
This commit is contained in:
parent
b3c54c3188
commit
e8d74461da
1 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
(pattern_char) @string.special.path
|
||||
|
||||
[
|
||||
(directory_separator)
|
||||
(directory_separator_escaped)
|
||||
|
@ -9,16 +11,17 @@
|
|||
(wildcard_char_single)
|
||||
(wildcard_chars)
|
||||
(wildcard_chars_allow_slash)
|
||||
(bracket_negation)
|
||||
] @operator
|
||||
|
||||
(negation) @punctuation.special
|
||||
] @character.special
|
||||
|
||||
[
|
||||
(pattern_char_escaped)
|
||||
(bracket_char_escaped)
|
||||
] @string.escape
|
||||
|
||||
(negation) @punctuation.special
|
||||
|
||||
(bracket_negation) @operator
|
||||
|
||||
; bracket expressions
|
||||
[
|
||||
"["
|
||||
|
|
Loading…
Reference in a new issue