1

Update generated neovim config

This commit is contained in:
2024-08-15 14:28:54 +02:00
parent 07409c223d
commit 25cfcf2941
3809 changed files with 351157 additions and 0 deletions

View File

@ -0,0 +1,162 @@
; highlights.scm
(comment) @comment
(type) @type
(unqualified_type) @type
(attribute) @attribute
(method_declaration (symbol (symbol) @type (identifier) @function.method))
(method_declaration (symbol (identifier) @function.method))
(local_function_declaration (identifier) @function)
(destructor_declaration (identifier) @function)
(creation_method_declaration (symbol (symbol) @type (identifier) @constructor))
(creation_method_declaration (symbol (identifier) @constructor))
(enum_declaration (symbol) @type)
(enum_value (identifier) @constant)
(errordomain_declaration (symbol) @type)
(errorcode (identifier) @constant)
(constant_declaration (identifier) @constant)
(method_call_expression (member_access_expression (identifier) @function))
(lambda_expression (identifier) @variable.parameter)
(parameter (identifier) @variable.parameter)
(property_declaration (symbol (identifier) @property))
[
(this_access)
(base_access)
(value_access)
] @variable.builtin
(boolean) @constant.builtin
(character) @constant
(integer) @number
(null) @constant.builtin
(real) @number
(regex) @constant
(string) @string
[
(escape_sequence)
(string_formatter)
] @string.special
(template_string) @string
(template_string_expression) @string.special
(verbatim_string) @string
[
"var"
"void"
] @type.builtin
[
"abstract"
"and"
"as"
"async"
"break"
"case"
"catch"
"class"
"const"
"construct"
"continue"
"default"
"delegate"
"delete"
"do"
"dynamic"
"else"
"enum"
"errordomain"
"extern"
"finally"
"for"
"foreach"
"get"
"if"
"in"
"inline"
"interface"
"internal"
"is"
"lock"
"namespace"
"new"
"not"
"or"
"out"
"override"
"owned"
"partial"
"private"
"protected"
"public"
"ref"
"return"
"set"
"signal"
"sizeof"
"static"
"struct"
"switch"
"throw"
"throws"
"try"
"typeof"
"unowned"
"using"
"virtual"
"weak"
"while"
"with"
"yield"
] @keyword
[
"="
"=="
"+"
"+="
"-"
"-="
"|"
"|="
"&"
"&="
"^"
"^="
"/"
"/="
"*"
"*="
"%"
"%="
"<<"
"<<="
">>"
">>="
"."
"?."
"->"
"!"
"~"
"??"
"?"
":"
"<"
"<="
">"
">="
"||"
"&&"
"=>"
] @operator
[
","
";"
] @punctuation.delimiter
[
"("
")"
"{"
"}"
"["
"]"
] @punctuation.bracket

View File

@ -0,0 +1,14 @@
; locals.scm
[
(method_declaration)
(local_function_declaration)
(signal_declaration)
(block)
] @local.scope
(parameter (identifier) @local.definition)
(local_declaration (assignment (identifier) @local.definition))
(local_function_declaration (identifier) @local.definition)
(member_access_expression . (identifier) @local.reference)

View File

@ -0,0 +1,246 @@
; highlights.scm
; higlight comments and symbols
(comment) @comment
(symbol) @symbol
(member_access_expression (_) (identifier) @symbol)
; highlight constants
(
(member_access_expression (identifier) @constant)
(#match? @constant "^[A-Z][A-Z_0-9]*$")
)
(
(member_access_expression (member_access_expression) @include (identifier) @constant)
(#match? @constant "^[A-Z][A-Z_0-9]*$")
)
; highlight types and probable types
(type (symbol (_)? @namespace (identifier) @type))
(
(member_access_expression . (identifier) @type)
(#match? @type "^[A-Z][A-Za-z_0-9]{2,}$")
)
; highlight creation methods in object creation expressions
(
(object_creation_expression (type (symbol (symbol (symbol)? @include (identifier) @type) (identifier) @constructor)))
(#match? @constructor "^[a-z][a-z_0-9]*$")
)
(unqualified_type (symbol . (identifier) @type))
(unqualified_type (symbol (symbol) @namespace (identifier) @type))
(attribute) @attribute
(namespace_declaration (symbol) @namespace)
(method_declaration (symbol (symbol) @type (identifier) @function))
(method_declaration (symbol (identifier) @function))
(local_declaration (assignment (identifier) @variable))
(local_function_declaration (identifier) @function)
(destructor_declaration (identifier) @function)
(creation_method_declaration (symbol (symbol) @type (identifier) @constructor))
(creation_method_declaration (symbol (identifier) @constructor))
(constructor_declaration "construct" @keyword.function)
(enum_declaration (symbol) @type)
(enum_value (identifier) @constant)
(errordomain_declaration (symbol) @type)
(errorcode (identifier) @constant)
(constant_declaration (identifier) @constant)
(method_call_expression (member_access_expression (identifier) @function))
; highlight macros
(
(method_call_expression (member_access_expression (identifier) @function.macro))
(#match? @function.macro "^assert[A-Za-z_0-9]*$" "error" "info" "debug" "print" "warning" "warning_once")
)
(lambda_expression (identifier) @parameter)
(parameter (identifier) @parameter)
(property_declaration (symbol (identifier) @property))
(field_declaration (identifier) @field)
[
(this_access)
(base_access)
(value_access)
] @constant.builtin
(boolean) @boolean
(character) @character
(escape_sequence) @character.special
(integer) @number
(null) @constant.builtin
(real) @float
(regex) @string.regex
(string) @string
(string_formatter) @string.special
(template_string) @string
(template_string_expression) @string.special
(verbatim_string) @string
[
"var"
"void"
] @type.builtin
(if_directive
expression: (_) @preproc
) @keyword
(elif_directive
expression: (_) @preproc
) @keyword
(else_directive) @keyword
(endif_directive) @keyword
[
"abstract"
"async"
"break"
"case"
"catch"
"class"
"construct"
"continue"
"default"
"delegate"
"enum"
"errordomain"
"finally"
"get"
"inline"
"interface"
"namespace"
"new"
"out"
"override"
"partial"
"ref"
"set"
"signal"
"struct"
"switch"
"throw"
"throws"
"try"
"virtual"
"with"
] @keyword
[
"const"
"dynamic"
"owned"
"weak"
"unowned"
] @type.qualifier
[
"else"
"if"
] @conditional
[
"extern"
"internal"
"private"
"protected"
"public"
"static"
] @storageclass
[
"and"
"as"
"delete"
"in"
"is"
"lock"
"not"
"or"
"sizeof"
"typeof"
] @keyword.operator
"using" @include
(using_directive (symbol) @namespace)
(symbol "global::" @namespace)
(array_creation_expression "new" @keyword.operator)
(object_creation_expression "new" @keyword.operator)
(argument "out" @keyword.operator)
(argument "ref" @keyword.operator)
[
"continue"
"do"
"for"
"foreach"
"while"
] @repeat
[
"catch"
"finally"
"throw"
"throws"
"try"
] @exception
[
"return"
"yield"
] @keyword.return
[
"="
"=="
"+"
"+="
"-"
"-="
"++"
"--"
"|"
"|="
"&"
"&="
"^"
"^="
"/"
"/="
"*"
"*="
"%"
"%="
"<<"
"<<="
">>"
">>="
"."
"?."
"->"
"!"
"!="
"~"
"??"
"?"
":"
"<"
"<="
">"
">="
"||"
"&&"
"=>"
] @operator
[
","
";"
] @punctuation.delimiter
[
"("
")"
"{"
"}"
"["
"]"
] @punctuation.bracket