aboutsummaryrefslogtreecommitdiffstats
path: root/queries/gitignore
diff options
context:
space:
mode:
Diffstat (limited to 'queries/gitignore')
-rw-r--r--queries/gitignore/highlights.scm11
1 files changed, 7 insertions, 4 deletions
diff --git a/queries/gitignore/highlights.scm b/queries/gitignore/highlights.scm
index 10ae3f309..aafbe541e 100644
--- a/queries/gitignore/highlights.scm
+++ b/queries/gitignore/highlights.scm
@@ -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
[
"["