diff options
Diffstat (limited to 'runtime/queries/bibtex/highlights.scm')
| -rw-r--r-- | runtime/queries/bibtex/highlights.scm | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/runtime/queries/bibtex/highlights.scm b/runtime/queries/bibtex/highlights.scm new file mode 100644 index 000000000..2231a17db --- /dev/null +++ b/runtime/queries/bibtex/highlights.scm @@ -0,0 +1,57 @@ +; CREDITS @pfoerster (adapted from https://github.com/latex-lsp/tree-sitter-bibtex) +[ + (string_type) + (preamble_type) + (entry_type) +] @keyword + +[ + (junk) + (comment) +] @comment + +(comment) @spell + +[ + "=" + "#" +] @operator + +(command) @function.builtin + +(number) @number + +(field + name: (identifier) @property) + +(token + (identifier) @variable.parameter) + +[ + (brace_word) + (quote_word) +] @string + +((field + name: (identifier) @_url + value: (value + (token + (brace_word) @string.special.url))) + (#any-of? @_url "url" "doi")) + +[ + (key_brace) + (key_paren) +] @markup.link.label + +(string + name: (identifier) @constant) + +[ + "{" + "}" + "(" + ")" +] @punctuation.bracket + +"," @punctuation.delimiter |
