1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-27 12:00:04 +08:00
SpaceVim/bundle/nvim-treesitter/queries/bibtex/highlights.scm
2022-04-14 12:01:23 +08:00

50 lines
531 B
Scheme
Vendored

; CREDITS @pfoerster (adapted from https://github.com/latex-lsp/tree-sitter-bibtex)
[
(string_type)
(preamble_type)
(entry_type)
] @keyword
[
(junk)
(comment)
] @comment
[
"="
"#"
] @operator
(command) @function.builtin
(number) @number
(field
name: (identifier) @field)
(token
(identifier) @parameter)
[
(brace_word)
(quote_word)
] @string
[
(key_brace)
(key_paren)
] @symbol
(string
name: (identifier) @constant)
[
"{"
"}"
"("
")"
] @punctuation.bracket
"," @punctuation.delimiter