Refresh generated neovim config
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
; highlights.scm
|
||||
; Literals
|
||||
(integer) @number
|
||||
|
||||
@ -9,8 +8,10 @@
|
||||
(string) @string
|
||||
|
||||
(string
|
||||
(escape_sequence) @string.escape)
|
||||
(string_content
|
||||
(escape_sequence) @string.escape))
|
||||
|
||||
; Comments
|
||||
(comment) @comment @spell
|
||||
|
||||
((program
|
||||
@ -18,116 +19,109 @@
|
||||
(comment) @keyword.directive @nospell)
|
||||
(#lua-match? @keyword.directive "^#!/"))
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
((dollar
|
||||
(identifier) @variable.builtin)
|
||||
(#eq? @variable.builtin "self"))
|
||||
|
||||
(dollar
|
||||
_
|
||||
(identifier) @variable.member)
|
||||
|
||||
; Parameters
|
||||
(formal_parameters
|
||||
(identifier) @variable.parameter)
|
||||
|
||||
(formal_parameters
|
||||
(default_parameter
|
||||
name: (identifier) @variable.parameter))
|
||||
|
||||
(default_argument
|
||||
name: (identifier) @variable.parameter)
|
||||
|
||||
; Namespace
|
||||
(namespace_get
|
||||
namespace: (identifier) @module)
|
||||
|
||||
(namespace_get_internal
|
||||
namespace: (identifier) @module)
|
||||
|
||||
; Operators
|
||||
[
|
||||
"?"
|
||||
":="
|
||||
"="
|
||||
"<-"
|
||||
"<<-"
|
||||
"->"
|
||||
] @operator
|
||||
|
||||
(unary
|
||||
operator: [
|
||||
"-"
|
||||
"+"
|
||||
"!"
|
||||
"~"
|
||||
"?"
|
||||
] @operator)
|
||||
|
||||
(binary
|
||||
operator: [
|
||||
"-"
|
||||
"+"
|
||||
"*"
|
||||
"/"
|
||||
"^"
|
||||
"<"
|
||||
">"
|
||||
"<="
|
||||
">="
|
||||
"=="
|
||||
"!="
|
||||
"||"
|
||||
"|"
|
||||
"&&"
|
||||
"&"
|
||||
":"
|
||||
"~"
|
||||
] @operator)
|
||||
|
||||
[
|
||||
"->>"
|
||||
"~"
|
||||
"|>"
|
||||
(special)
|
||||
"||"
|
||||
"|"
|
||||
"&&"
|
||||
"&"
|
||||
"<"
|
||||
"<="
|
||||
">"
|
||||
">="
|
||||
"=="
|
||||
"!="
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"::"
|
||||
":::"
|
||||
"**"
|
||||
"^"
|
||||
"$"
|
||||
"@"
|
||||
":"
|
||||
"!"
|
||||
"special"
|
||||
] @operator
|
||||
|
||||
(lambda_function
|
||||
"\\" @operator)
|
||||
|
||||
; Punctuation
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
"[["
|
||||
"]]"
|
||||
] @punctuation.bracket
|
||||
|
||||
"," @punctuation.delimiter
|
||||
(comma) @punctuation.delimiter
|
||||
|
||||
(dollar
|
||||
_
|
||||
"$" @operator)
|
||||
; Variables
|
||||
(identifier) @variable
|
||||
|
||||
(subset2
|
||||
"[[" @punctuation.bracket
|
||||
"]]" @punctuation.bracket)
|
||||
; Functions
|
||||
(binary_operator
|
||||
lhs: (identifier) @function
|
||||
operator: "<-"
|
||||
rhs: (function_definition))
|
||||
|
||||
[
|
||||
(dots)
|
||||
(break)
|
||||
(next)
|
||||
] @keyword
|
||||
(binary_operator
|
||||
lhs: (identifier) @function
|
||||
operator: "="
|
||||
rhs: (function_definition))
|
||||
|
||||
[
|
||||
(nan)
|
||||
(na)
|
||||
(null)
|
||||
(inf)
|
||||
] @constant.builtin
|
||||
; Calls
|
||||
(call
|
||||
function: (identifier) @function.call)
|
||||
|
||||
(extract_operator
|
||||
rhs: (identifier) @variable.member)
|
||||
|
||||
function: (extract_operator
|
||||
rhs: (identifier) @function.method.call)
|
||||
|
||||
; Parameters
|
||||
(parameters
|
||||
(parameter
|
||||
name: (identifier) @variable.parameter))
|
||||
|
||||
(arguments
|
||||
(argument
|
||||
name: (identifier) @variable.parameter))
|
||||
|
||||
; Namespace
|
||||
(namespace_operator
|
||||
lhs: (identifier) @module)
|
||||
|
||||
(call
|
||||
function: (namespace_operator
|
||||
rhs: (identifier) @function))
|
||||
|
||||
; Keywords
|
||||
(function_definition
|
||||
name: "function" @keyword.function)
|
||||
|
||||
(function_definition
|
||||
name: "\\" @operator)
|
||||
|
||||
(return) @keyword.return
|
||||
|
||||
[
|
||||
"if"
|
||||
"else"
|
||||
"switch"
|
||||
] @keyword.conditional
|
||||
|
||||
[
|
||||
@ -135,6 +129,8 @@
|
||||
"repeat"
|
||||
"for"
|
||||
"in"
|
||||
(break)
|
||||
(next)
|
||||
] @keyword.repeat
|
||||
|
||||
[
|
||||
@ -142,21 +138,11 @@
|
||||
(false)
|
||||
] @boolean
|
||||
|
||||
"function" @keyword.function
|
||||
|
||||
; Functions/Methods
|
||||
(call
|
||||
function: (identifier) @function.call)
|
||||
|
||||
(call
|
||||
(namespace_get
|
||||
function: (identifier) @function.call))
|
||||
|
||||
(call
|
||||
(namespace_get_internal
|
||||
function: (identifier) @function.call))
|
||||
|
||||
(call
|
||||
function: (dollar
|
||||
_
|
||||
(identifier) @function.method.call))
|
||||
[
|
||||
(null)
|
||||
(inf)
|
||||
(nan)
|
||||
(na)
|
||||
(dots)
|
||||
(dot_dot_i)
|
||||
] @constant.builtin
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
[
|
||||
(brace_list)
|
||||
(paren_list)
|
||||
(special)
|
||||
(pipe)
|
||||
(braced_expression)
|
||||
(parenthesized_expression)
|
||||
(call)
|
||||
"|>"
|
||||
"if"
|
||||
"else"
|
||||
"while"
|
||||
@ -12,16 +9,19 @@
|
||||
"for"
|
||||
] @indent.begin
|
||||
|
||||
(binary
|
||||
operator: (special)) @indent.begin
|
||||
(binary_operator
|
||||
rhs: (_) @_no_indent
|
||||
(#not-kind-eq? @_no_indent function_definition)) @indent.begin
|
||||
|
||||
[
|
||||
"}"
|
||||
")"
|
||||
] @indent.branch
|
||||
|
||||
((formal_parameters
|
||||
(identifier)) @indent.align
|
||||
((parameters
|
||||
.
|
||||
(parameter
|
||||
name: (identifier))) @indent.align
|
||||
(#set! indent.open_delimiter "(")
|
||||
(#set! indent.close_delimiter ")"))
|
||||
|
||||
|
||||
@ -1,16 +1,22 @@
|
||||
; locals.scm
|
||||
(function_definition) @local.scope
|
||||
|
||||
(formal_parameters
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(left_assignment
|
||||
(argument
|
||||
name: (identifier) @local.definition)
|
||||
|
||||
(equals_assignment
|
||||
(parameter
|
||||
name: (identifier) @local.definition)
|
||||
|
||||
(right_assignment
|
||||
name: (identifier) @local.definition)
|
||||
(binary_operator
|
||||
lhs: (identifier) @local.definition
|
||||
operator: "<-")
|
||||
|
||||
(binary_operator
|
||||
lhs: (identifier) @local.definition
|
||||
operator: "=")
|
||||
|
||||
(binary_operator
|
||||
operator: "->"
|
||||
rhs: (identifier) @local.definition)
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
Reference in New Issue
Block a user