1

Refresh generated neovim config

This commit is contained in:
2024-08-15 13:01:03 +02:00
parent 64b51cf53a
commit f5af8e2b28
1836 changed files with 38979 additions and 31094 deletions

View File

@ -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