aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/bibtex/highlights.scm
diff options
context:
space:
mode:
authorFelipe S. S. Schneider2022-12-09 04:33:08 +0000
committerGitHub2022-12-09 04:33:08 +0000
commitd14de277092d7eab555ea2abc1435101d12e308c (patch)
tree14e34e1fcee335209c5c1f59abe826805c6f037f /runtime/queries/bibtex/highlights.scm
parent37e7dd1df598312727aadb5c74919fd196fecffc (diff)
Add support for the BibTeX file format (#5064)
Diffstat (limited to 'runtime/queries/bibtex/highlights.scm')
-rw-r--r--runtime/queries/bibtex/highlights.scm47
1 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