diff options
author | Felipe S. S. Schneider | 2022-12-09 04:33:08 +0000 |
---|---|---|
committer | GitHub | 2022-12-09 04:33:08 +0000 |
commit | d14de277092d7eab555ea2abc1435101d12e308c (patch) | |
tree | 14e34e1fcee335209c5c1f59abe826805c6f037f /runtime/queries | |
parent | 37e7dd1df598312727aadb5c74919fd196fecffc (diff) |
Add support for the BibTeX file format (#5064)
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/bibtex/highlights.scm | 47 | ||||
-rw-r--r-- | runtime/queries/bibtex/locals.scm | 0 | ||||
-rw-r--r-- | runtime/queries/bibtex/tags.scm | 0 |
3 files changed, 47 insertions, 0 deletions
diff --git a/runtime/queries/bibtex/highlights.scm b/runtime/queries/bibtex/highlights.scm new file mode 100644 index 00000000..db1ab70c --- /dev/null +++ b/runtime/queries/bibtex/highlights.scm @@ -0,0 +1,47 @@ +[ + (string_type) + (preamble_type) + (entry_type) +] @keyword + +[ + (junk) + (comment) +] @comment + +[ + "=" + "#" +] @operator + +(command) @function.builtin + +(number) @constant.numeric + +(field + name: (identifier) @variable.builtin) + +(token + (identifier) @variable.parameter) + +[ + (brace_word) + (quote_word) +] @string + +[ + (key_brace) + (key_paren) +] @attribute + +(string + name: (identifier) @constant) + +[ + "{" + "}" + "(" + ")" +] @punctuation.bracket + +"," @punctuation.delimiter diff --git a/runtime/queries/bibtex/locals.scm b/runtime/queries/bibtex/locals.scm new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/runtime/queries/bibtex/locals.scm diff --git a/runtime/queries/bibtex/tags.scm b/runtime/queries/bibtex/tags.scm new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/runtime/queries/bibtex/tags.scm |