mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
1
runtime/queries/bibtex/folds.scm
Normal file
1
runtime/queries/bibtex/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(entry) @fold
|
||||
57
runtime/queries/bibtex/highlights.scm
Normal file
57
runtime/queries/bibtex/highlights.scm
Normal file
|
|
@ -0,0 +1,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
|
||||
8
runtime/queries/bibtex/indents.scm
Normal file
8
runtime/queries/bibtex/indents.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(entry) @indent.begin
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @indent.branch
|
||||
|
||||
(comment) @indent.ignore
|
||||
2
runtime/queries/bibtex/injections.scm
Normal file
2
runtime/queries/bibtex/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((junk) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue