feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View file

@ -0,0 +1 @@
(entry) @fold

View 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

View file

@ -0,0 +1,8 @@
(entry) @indent.begin
[
"{"
"}"
] @indent.branch
(comment) @indent.ignore

View file

@ -0,0 +1,2 @@
((junk) @injection.content
(#set! injection.language "comment"))