diff options
Diffstat (limited to 'runtime/queries/gitignore')
| -rw-r--r-- | runtime/queries/gitignore/highlights.scm | 36 | ||||
| -rw-r--r-- | runtime/queries/gitignore/injections.scm | 2 |
2 files changed, 38 insertions, 0 deletions
diff --git a/runtime/queries/gitignore/highlights.scm b/runtime/queries/gitignore/highlights.scm new file mode 100644 index 000000000..aafbe541e --- /dev/null +++ b/runtime/queries/gitignore/highlights.scm @@ -0,0 +1,36 @@ +(comment) @comment @spell + +(pattern_char) @string.special.path + +[ + (directory_separator) + (directory_separator_escaped) +] @punctuation.delimiter + +[ + (wildcard_char_single) + (wildcard_chars) + (wildcard_chars_allow_slash) +] @character.special + +[ + (pattern_char_escaped) + (bracket_char_escaped) +] @string.escape + +(negation) @punctuation.special + +(bracket_negation) @operator + +; bracket expressions +[ + "[" + "]" +] @punctuation.bracket + +(bracket_char) @constant + +(bracket_range + "-" @operator) + +(bracket_char_class) @constant.builtin diff --git a/runtime/queries/gitignore/injections.scm b/runtime/queries/gitignore/injections.scm new file mode 100644 index 000000000..2f0e58eb6 --- /dev/null +++ b/runtime/queries/gitignore/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.content + (#set! injection.language "comment")) |
