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:
Tyler Miller 2024-07-18 02:24:20 -07:00 committed by Christian Clason
parent b3c54c3188
commit e8d74461da

View file

@ -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
[
"["