1

Regenerate nvim config

This commit is contained in:
2024-06-02 03:29:20 +02:00
parent 75eea0c030
commit ef2e28883d
5576 changed files with 604886 additions and 503 deletions

View File

@ -0,0 +1,5 @@
[
(grammar_item)
(use)+
(action)
] @fold

View File

@ -0,0 +1,98 @@
(comment) @comment @spell
"grammar" @keyword
[
"type"
"enum"
] @keyword.type
[
"pub"
"extern"
(mut)
] @keyword.modifier
[
"match"
"else"
] @keyword.conditional
[
"+"
"*"
"?"
; TODO: inaccessible node
; =>
"=>@L"
"=>@R"
"="
"&"
] @operator
(binding_symbol
name: (identifier) @variable.parameter)
(annotation
"#" @punctuation.special)
(grammar_parameter
(identifier) @variable.parameter)
(associated_type
(identifier) @type)
(parametrized_type
(path
(identifier) @type))
(bare_symbol
(macro
(macro_id) @type.definition))
(bare_symbol
(identifier) @type.definition)
(nonterminal_name
(macro_id) @type.definition)
(nonterminal_name
(identifier) @type.definition)
(nonterminal
(type_ref) @type.builtin)
[
"("
")"
"["
"]"
"}"
"{"
">"
"<"
] @punctuation.bracket
[
";"
":"
"::"
","
] @punctuation.delimiter
(lifetime
"'" @keyword.modifier)
(lifetime
(identifier) @attribute)
(lifetime
(identifier) @attribute.builtin
(#any-of? @attribute.builtin "static" "_"))
(string_literal) @string
(regex_literal) @string
(annotation
(id) @function.macro)

View File

@ -0,0 +1,15 @@
((comment) @injection.content
(#set! injection.language "comment"))
([
(normal_action)
(failible_action)
] @injection.content
(#set! injection.language "rust"))
((use) @injection.content
(#set! injection.language "rust"))
((regex_literal) @injection.content
(#set! injection.language "regex")
(#offset! @injection.content 0 2 0 -1))

View File

@ -0,0 +1,5 @@
(nonterminal_name
(macro_id) @local.definition.function)
(nonterminal_name
(identifier) @local.definition.function)