blob: 2231a17db0256d7da1606fa484dd65b822e8bf75 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
|