Update generated neovim config
This commit is contained in:
@ -0,0 +1,148 @@
|
||||
[
|
||||
"!in"
|
||||
"!instanceof"
|
||||
"as"
|
||||
"assert"
|
||||
"case"
|
||||
"catch"
|
||||
"class"
|
||||
"def"
|
||||
"default"
|
||||
"else"
|
||||
"extends"
|
||||
"finally"
|
||||
"for"
|
||||
"if"
|
||||
"import"
|
||||
"in"
|
||||
"instanceof"
|
||||
"package"
|
||||
"pipeline"
|
||||
"return"
|
||||
"switch"
|
||||
"try"
|
||||
"while"
|
||||
(break)
|
||||
(continue)
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"true"
|
||||
"false"
|
||||
] @boolean
|
||||
|
||||
(null) @constant
|
||||
"this" @variable.builtin
|
||||
|
||||
[
|
||||
"int"
|
||||
"char"
|
||||
"short"
|
||||
"long"
|
||||
"boolean"
|
||||
"float"
|
||||
"double"
|
||||
"void"
|
||||
] @type.builtin
|
||||
|
||||
[
|
||||
"final"
|
||||
"private"
|
||||
"protected"
|
||||
"public"
|
||||
"static"
|
||||
"synchronized"
|
||||
] @type.qualifier
|
||||
|
||||
(comment) @comment
|
||||
(shebang) @comment
|
||||
|
||||
(string) @string
|
||||
(string (escape_sequence) @operator)
|
||||
(string (interpolation ([ "$" ]) @operator))
|
||||
|
||||
("(") @punctuation.bracket
|
||||
(")") @punctuation.bracket
|
||||
("[") @punctuation.bracket
|
||||
("]") @punctuation.bracket
|
||||
("{") @punctuation.bracket
|
||||
("}") @punctuation.bracket
|
||||
(":") @punctuation.delimiter
|
||||
(",") @punctuation.delimiter
|
||||
(".") @punctuation.delimiter
|
||||
|
||||
(number_literal) @number
|
||||
(identifier) @variable
|
||||
((identifier) @variable.parameter
|
||||
(#is? @variable.parameter "local.parameter"))
|
||||
|
||||
((identifier) @constant
|
||||
(#match? @constant "^[A-Z][A-Z_]+"))
|
||||
|
||||
[
|
||||
"%" "*" "/" "+" "-" "<<" ">>" ">>>" ".." "..<" "<..<" "<.." "<"
|
||||
"<=" ">" ">=" "==" "!=" "<=>" "===" "!==" "=~" "==~" "&" "^" "|"
|
||||
"&&" "||" "?:" "+" "*" ".&" ".@" "?." "*." "*" "*:" "++" "--" "!"
|
||||
] @operator
|
||||
|
||||
(string ("/") @string)
|
||||
|
||||
(ternary_op ([ "?" ":" ]) @operator)
|
||||
|
||||
(map (map_item key: (identifier) @variable.parameter))
|
||||
|
||||
(parameter type: (identifier) @type name: (identifier) @variable.parameter)
|
||||
(generic_param name: (identifier) @variable.parameter)
|
||||
|
||||
(declaration type: (identifier) @type)
|
||||
(function_definition type: (identifier) @type)
|
||||
(function_declaration type: (identifier) @type)
|
||||
(class_definition name: (identifier) @type)
|
||||
(class_definition superclass: (identifier) @type)
|
||||
(generic_param superclass: (identifier) @type)
|
||||
|
||||
(type_with_generics (identifier) @type)
|
||||
(type_with_generics (generics (identifier) @type))
|
||||
(generics [ "<" ">" ] @punctuation.bracket)
|
||||
(generic_parameters [ "<" ">" ] @punctuation.bracket)
|
||||
; TODO: Class literals with PascalCase
|
||||
|
||||
(declaration ("=") @operator)
|
||||
(assignment ("=") @operator)
|
||||
|
||||
|
||||
(function_call
|
||||
function: (identifier) @function)
|
||||
(function_call
|
||||
function: (dotted_identifier
|
||||
(identifier) @function . ))
|
||||
(function_call (argument_list
|
||||
(map_item key: (identifier) @variable.parameter)))
|
||||
(juxt_function_call
|
||||
function: (identifier) @function)
|
||||
(juxt_function_call
|
||||
function: (dotted_identifier
|
||||
(identifier) @function . ))
|
||||
(juxt_function_call (argument_list
|
||||
(map_item key: (identifier) @variable.parameter)))
|
||||
|
||||
(function_definition
|
||||
function: (identifier) @function)
|
||||
(function_declaration
|
||||
function: (identifier) @function)
|
||||
|
||||
(annotation) @function.macro
|
||||
(annotation (identifier) @function.macro)
|
||||
"@interface" @function.macro
|
||||
|
||||
"pipeline" @keyword
|
||||
|
||||
(groovy_doc) @comment.documentation
|
||||
(groovy_doc
|
||||
[
|
||||
(groovy_doc_param)
|
||||
(groovy_doc_throws)
|
||||
(groovy_doc_tag)
|
||||
] @string.special)
|
||||
(groovy_doc (groovy_doc_param (identifier) @variable.parameter))
|
||||
(groovy_doc (groovy_doc_throws (identifier) @type))
|
||||
@ -0,0 +1,23 @@
|
||||
[
|
||||
(closure)
|
||||
(map)
|
||||
(list)
|
||||
(argument_list)
|
||||
(parameter_list)
|
||||
(for_parameters)
|
||||
] @indent.begin
|
||||
|
||||
; (function_definition "(" @indent.begin)
|
||||
|
||||
(closure "}" @indent.end)
|
||||
(argument_list ")" @indent.end)
|
||||
(for_parameters ")" @indent.end)
|
||||
((for_loop
|
||||
body: (_) @_body) @indent.begin
|
||||
(#not-has-type? @_body closure))
|
||||
; TODO: while, try
|
||||
|
||||
(list "]" @indent.end)
|
||||
(map "]" @indent.end)
|
||||
|
||||
[ "}" ")" "]" ] @indent.branch
|
||||
@ -0,0 +1,6 @@
|
||||
[
|
||||
(function_definition)
|
||||
] @local.scope
|
||||
(parameter name: (identifier) @local.definition.parameter)
|
||||
|
||||
(identifier) @local.reference
|
||||
Reference in New Issue
Block a user