1

Update generated neovim config

This commit is contained in:
2024-09-22 20:41:25 +02:00
parent 1743764e48
commit aa1271c42c
1247 changed files with 26512 additions and 15067 deletions

View File

@ -7,9 +7,11 @@
(while_statement)
(if_statement)
(if_let_statement)
(elif_block)
(else_if_block)
(struct_definition)
(enum_definition)
(try_catch_statement)
(method_definition)
(import_statement)+
(initializer)
] @fold

View File

@ -8,17 +8,34 @@
(custom_type) @type
(class_field
name: (identifier) @variable.member)
name: (identifier) @property)
(struct_field
name: (identifier) @property)
(class_definition
name: (identifier) @type)
(struct_definition
name: (identifier) @type)
(interface_definition
name: (identifier) @type)
(method_definition
name: (identifier) @function.method)
(json_literal_member
(identifier) @property)
; Functions
(keyword_argument_key) @variable.parameter
(parameter_definition
name: (identifier) @variable.parameter)
(variadic) @variable.parameter.builtin
(call
caller: (reference
(nested_identifier
@ -37,24 +54,30 @@
(bool) @boolean
(builtin_type) @type.builtin
[
(builtin_type)
"MutSet"
"MutMap"
"MutArray"
"Json"
"Set"
"Map"
"Array"
"MutJson"
] @type.builtin
(json_container_type) @type.builtin
; Special
(comment) @comment @spell
[
"("
")"
"{"
"}"
] @punctuation.bracket
[
"-"
"-="
"+"
"+="
"*"
"**"
"/"
"%"
"<"
@ -68,23 +91,54 @@
"&&"
"??"
"||"
"?"
] @operator
[
"("
")"
"{"
"}"
"["
"]"
] @punctuation.bracket
(mutable_container_type
[
"<"
">"
] @punctuation.bracket)
(immutable_container_type
[
"<"
">"
] @punctuation.bracket)
[
";"
"."
","
":"
"=>"
] @punctuation.delimiter
[
"as"
"bring"
"let"
"new"
(inflight_specifier)
(phase_specifier)
"impl"
"test"
] @keyword
"class" @keyword.type
"bring" @keyword.import
[
"class"
"struct"
"interface"
] @keyword.type
[
"for"
@ -100,6 +154,26 @@
"pub"
"protected"
"internal"
"extern"
(static)
] @keyword.modifier
"return" @keyword.return
(import_statement
module_name: (identifier) @module)
(import_statement
alias: (identifier) @module)
(call
(reference
(nested_identifier
object: (reference) @_ref
property: (member_identifier) @_ident))
(argument_list
(positional_argument
(string) @string.regexp))
(#eq? @_ref "regex")
(#eq? @_ident "compile")
(#offset! @string.regexp 0 1 0 -1))

View File

@ -1,2 +1,15 @@
((comment) @injection.content
(#set! injection.language "comment"))
(call
(reference
(nested_identifier
object: (reference) @_ref
property: (member_identifier) @_ident))
(argument_list
(positional_argument
(string) @injection.content))
(#eq? @_ref "regex")
(#eq? @_ident "compile")
(#offset! @injection.content 0 1 0 -1)
(#set! injection.language "regex"))