mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04: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
|
(comment) @comment @spell
|
||||||
|
|
||||||
|
(pattern_char) @string.special.path
|
||||||
|
|
||||||
[
|
[
|
||||||
(directory_separator)
|
(directory_separator)
|
||||||
(directory_separator_escaped)
|
(directory_separator_escaped)
|
||||||
|
|
@ -9,16 +11,17 @@
|
||||||
(wildcard_char_single)
|
(wildcard_char_single)
|
||||||
(wildcard_chars)
|
(wildcard_chars)
|
||||||
(wildcard_chars_allow_slash)
|
(wildcard_chars_allow_slash)
|
||||||
(bracket_negation)
|
] @character.special
|
||||||
] @operator
|
|
||||||
|
|
||||||
(negation) @punctuation.special
|
|
||||||
|
|
||||||
[
|
[
|
||||||
(pattern_char_escaped)
|
(pattern_char_escaped)
|
||||||
(bracket_char_escaped)
|
(bracket_char_escaped)
|
||||||
] @string.escape
|
] @string.escape
|
||||||
|
|
||||||
|
(negation) @punctuation.special
|
||||||
|
|
||||||
|
(bracket_negation) @operator
|
||||||
|
|
||||||
; bracket expressions
|
; bracket expressions
|
||||||
[
|
[
|
||||||
"["
|
"["
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue