Skip to content

Commit b8c2663

Browse files
authored
fix(bibtex): add highlights.scm (#264)
1 parent 82101db commit b8c2663

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

queries/bibtex/highlights.scm

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[
2+
(string_type)
3+
(preamble_type)
4+
(entry_type)
5+
] @keyword
6+
7+
[
8+
(junk)
9+
(comment)
10+
] @comment
11+
12+
[
13+
"="
14+
"#"
15+
] @operator
16+
17+
(command) @function.builtin
18+
19+
(number) @number
20+
21+
(field
22+
name: (identifier) @variable.builtin)
23+
24+
(token
25+
(identifier) @variable.parameter)
26+
27+
[
28+
(brace_word)
29+
(quote_word)
30+
] @string
31+
32+
[
33+
(key_brace)
34+
(key_paren)
35+
] @attribute
36+
37+
(string
38+
name: (identifier) @constant)
39+
40+
[
41+
"{"
42+
"}"
43+
"("
44+
")"
45+
] @punctuation.bracket
46+
47+
"," @punctuation.delimiter

0 commit comments

Comments
 (0)