diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-15 23:36:56 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-16 23:16:44 -0700 |
| commit | b245c44ce1ae741955cf782f8f88cb36d0de94bc (patch) | |
| tree | c410355225094ac93f98d2756fff42bf2d200c47 /queries | |
| parent | 826c951825e94dd57decfbb2dd85781ff4dfc712 (diff) | |
parsers: add tree-sitter-gitignore
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/gitignore/highlights.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/queries/gitignore/highlights.scm b/queries/gitignore/highlights.scm new file mode 100644 index 00000000..c5f1ac5e --- /dev/null +++ b/queries/gitignore/highlights.scm @@ -0,0 +1,31 @@ +(comment) @comment + +[ + (directory_separator) + (directory_separator_escaped) +] @punctuation.delimiter + +[ + (wildcard_char_single) + (wildcard_chars) + (wildcard_chars_allow_slash) + (bracket_negation) +] @operator + +(negation) @punctuation.special + +[ + (pattern_char_escaped) + (bracket_char_escaped) +] @string.escape + +;; bracket expressions +[ + "[" + "]" +] @punctuation.bracket + +(bracket_char) @constant +(bracket_range + "-" @operator) +(bracket_char_class) @constant.builtin |
