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,5 @@
[
(import_spec_list)
(field)
(string)
] @fold

View File

@ -0,0 +1,165 @@
; Includes
[
"package"
"import"
] @include
; Namespaces
(package_identifier) @namespace
(import_spec ["." "_"] @punctuation.special)
[
(attr_path)
(package_path)
] @text.uri ;; In attributes
; Attributes
(attribute) @attribute
; Conditionals
"if" @conditional
; Repeats
[
"for"
] @repeat
(for_clause "_" @punctuation.special)
; Keywords
[
"let"
] @keyword
[
"in"
] @keyword.operator
; Operators
[
"+"
"-"
"*"
"/"
"|"
"&"
"||"
"&&"
"=="
"!="
"<"
"<="
">"
">="
"=~"
"!~"
"!"
"="
] @operator
; Fields & Properties
(field
(label
(identifier) @field))
(selector_expression
(_)
(identifier) @property)
; Functions
(call_expression
function: (identifier) @function.call)
(call_expression
function: (selector_expression
(_)
(identifier) @function.call))
(call_expression
function: (builtin_function) @function.call)
(builtin_function) @function.builtin
; Variables
(identifier) @variable
; Types
(primitive_type) @type.builtin
((identifier) @type
(#match? @type "^(#|_#)"))
[
(slice_type)
(pointer_type)
] @type ;; In attributes
; Punctuation
[
","
":"
] @punctuation.delimiter
[ "{" "}" ] @punctuation.bracket
[ "[" "]" ] @punctuation.bracket
[ "(" ")" ] @punctuation.bracket
[ "<" ">" ] @punctuation.bracket
[
(ellipsis)
"?"
"!"
] @punctuation.special
; Literals
(string) @string
[
(escape_char)
(escape_unicode)
] @string.escape
(number) @number
(float) @float
(si_unit
(float)
(_) @symbol)
(boolean) @boolean
[
(null)
(top)
(bottom)
] @constant.builtin
; Interpolations
(interpolation "\\(" @punctuation.special (_) ")" @punctuation.special) @none
(interpolation "\\(" (identifier) @variable ")")
; Comments
(comment) @comment @spell
; Errors
(ERROR) @error

View File

@ -0,0 +1,21 @@
[
(import_spec_list)
(field)
] @indent.begin
[
"}"
"]"
")"
] @indent.end
[ "{" "}" ] @indent.branch
[ "[" "]" ] @indent.branch
[ "(" ")" ] @indent.branch
[
(ERROR)
(comment)
] @indent.auto

View File

@ -0,0 +1 @@
(comment) @comment

View File

@ -0,0 +1,34 @@
; Scopes
[
(source_file)
(field)
(for_clause)
] @scope
; References
(identifier) @reference
; Definitions
(import_spec
path: (string) @definition.import)
(field
(label
(identifier) @definition.field))
(package_identifier) @definition.namespace
(for_clause
(identifier) @definition.variable
(expression))
(for_clause
(identifier)
(identifier) @definition.variable
(expression))
(let_clause
(identifier) @definition.variable)