Regenerate nvim config
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
[
|
||||
(annotation_targets)
|
||||
(const_list)
|
||||
(enum)
|
||||
(interface)
|
||||
(implicit_generics)
|
||||
(generics)
|
||||
(group)
|
||||
(method_parameters)
|
||||
(named_return_types)
|
||||
(struct)
|
||||
(struct_shorthand)
|
||||
(union)
|
||||
] @fold
|
||||
@ -0,0 +1,141 @@
|
||||
; Preproc
|
||||
[
|
||||
(unique_id)
|
||||
(top_level_annotation_body)
|
||||
] @keyword.directive
|
||||
|
||||
; Includes
|
||||
[
|
||||
"import"
|
||||
"$import"
|
||||
"embed"
|
||||
"using"
|
||||
] @keyword.import
|
||||
|
||||
(import_path) @string.special.path
|
||||
|
||||
; Keywords
|
||||
"extends" @keyword
|
||||
|
||||
[
|
||||
"struct"
|
||||
"interface"
|
||||
"union"
|
||||
"enum"
|
||||
"annotation"
|
||||
"group"
|
||||
"namespace"
|
||||
] @keyword.type
|
||||
|
||||
; Builtins
|
||||
"const" @keyword.modifier
|
||||
|
||||
[
|
||||
(primitive_type)
|
||||
"List"
|
||||
] @type.builtin
|
||||
|
||||
; Typedefs
|
||||
(type_definition) @type.definition
|
||||
|
||||
; Labels (@number, @number!)
|
||||
(field_version) @label
|
||||
|
||||
; Methods
|
||||
[
|
||||
(annotation_definition_identifier)
|
||||
(method_identifier)
|
||||
] @function.method
|
||||
|
||||
; Fields
|
||||
(field_identifier) @variable.member
|
||||
|
||||
; Properties
|
||||
(property) @property
|
||||
|
||||
; Parameters
|
||||
[
|
||||
(param_identifier)
|
||||
(return_identifier)
|
||||
] @variable.parameter
|
||||
|
||||
(annotation_target) @variable.parameter.builtin
|
||||
|
||||
; Constants
|
||||
[
|
||||
(const_identifier)
|
||||
(local_const)
|
||||
(enum_member)
|
||||
] @constant
|
||||
|
||||
(void) @constant.builtin
|
||||
|
||||
; Types
|
||||
[
|
||||
(enum_identifier)
|
||||
(extend_type)
|
||||
(type_identifier)
|
||||
] @type
|
||||
|
||||
; Attributes
|
||||
[
|
||||
(annotation_identifier)
|
||||
(attribute)
|
||||
] @attribute
|
||||
|
||||
; Operators
|
||||
"=" @operator
|
||||
|
||||
; Literals
|
||||
[
|
||||
(string)
|
||||
(concatenated_string)
|
||||
(block_text)
|
||||
(namespace)
|
||||
] @string
|
||||
|
||||
(namespace) @string.special
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
(data_string) @string.special
|
||||
|
||||
(number) @number
|
||||
|
||||
(float) @number.float
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(data_hex) @string.special.symbol
|
||||
|
||||
; Punctuation
|
||||
[
|
||||
"*"
|
||||
"$"
|
||||
":"
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"."
|
||||
","
|
||||
";"
|
||||
"->"
|
||||
] @punctuation.delimiter
|
||||
|
||||
; Comments
|
||||
(comment) @comment @spell
|
||||
@ -0,0 +1,40 @@
|
||||
[
|
||||
(annotation_targets)
|
||||
(const)
|
||||
(enum)
|
||||
(interface)
|
||||
(implicit_generics)
|
||||
(generics)
|
||||
(group)
|
||||
(method_parameters)
|
||||
(named_return_types)
|
||||
(struct)
|
||||
(union)
|
||||
(field)
|
||||
] @indent.begin
|
||||
|
||||
((struct_shorthand
|
||||
(property)) @indent.align
|
||||
(#set! indent.open_delimiter "(")
|
||||
(#set! indent.close_delimiter ")"))
|
||||
|
||||
((method
|
||||
(field_version)) @indent.align
|
||||
(#set! indent.open_delimiter field_version))
|
||||
|
||||
((const_list
|
||||
(const_value)) @indent.align
|
||||
(#set! indent.open_delimiter "[")
|
||||
(#set! indent.close_delimiter "]"))
|
||||
|
||||
(concatenated_string) @indent.align
|
||||
|
||||
[
|
||||
"}"
|
||||
")"
|
||||
] @indent.end @indent.branch
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment)
|
||||
] @indent.auto
|
||||
@ -0,0 +1,2 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
@ -0,0 +1,97 @@
|
||||
[
|
||||
(message)
|
||||
(annotation_targets)
|
||||
(const_list)
|
||||
(enum)
|
||||
(interface)
|
||||
(implicit_generics)
|
||||
(generics)
|
||||
(group)
|
||||
(method_parameters)
|
||||
(named_return_types)
|
||||
(struct)
|
||||
(struct_shorthand)
|
||||
(union)
|
||||
] @local.scope
|
||||
|
||||
[
|
||||
(extend_type)
|
||||
(field_type)
|
||||
] @local.reference
|
||||
|
||||
(custom_type
|
||||
(type_identifier) @local.reference)
|
||||
|
||||
(custom_type
|
||||
(generics
|
||||
(generic_parameters
|
||||
(generic_identifier) @local.reference)))
|
||||
|
||||
(annotation_definition_identifier) @local.definition
|
||||
|
||||
(const_identifier) @local.definition.constant
|
||||
|
||||
(enum
|
||||
(enum_identifier) @local.definition.enum)
|
||||
|
||||
[
|
||||
(enum_member)
|
||||
(field_identifier)
|
||||
] @local.definition.field
|
||||
|
||||
(method_identifier) @local.definition.method
|
||||
|
||||
(namespace) @local.definition.namespace
|
||||
|
||||
[
|
||||
(param_identifier)
|
||||
(return_identifier)
|
||||
] @local.definition.parameter
|
||||
|
||||
(group
|
||||
(type_identifier) @local.definition.type)
|
||||
|
||||
(struct
|
||||
(type_identifier) @local.definition.type)
|
||||
|
||||
(union
|
||||
(type_identifier) @local.definition.type)
|
||||
|
||||
(interface
|
||||
(type_identifier) @local.definition.type)
|
||||
|
||||
; Generics Related (don't know how to combine these)
|
||||
(struct
|
||||
(generics
|
||||
(generic_parameters
|
||||
(generic_identifier) @local.definition.parameter)))
|
||||
|
||||
(interface
|
||||
(generics
|
||||
(generic_parameters
|
||||
(generic_identifier) @local.definition.parameter)))
|
||||
|
||||
(method
|
||||
(implicit_generics
|
||||
(implicit_generic_parameters
|
||||
(generic_identifier) @local.definition.parameter)))
|
||||
|
||||
(method
|
||||
(generics
|
||||
(generic_parameters
|
||||
(generic_identifier) @local.definition.parameter)))
|
||||
|
||||
(annotation
|
||||
(generics
|
||||
(generic_parameters
|
||||
(generic_identifier) @local.definition.type)))
|
||||
|
||||
(replace_using
|
||||
(generics
|
||||
(generic_parameters
|
||||
(generic_identifier) @local.definition.type)))
|
||||
|
||||
(return_type
|
||||
(generics
|
||||
(generic_parameters
|
||||
(generic_identifier) @local.definition.type)))
|
||||
Reference in New Issue
Block a user