Update generated neovim config
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
[
|
||||
(function_call)
|
||||
(code_block)
|
||||
(function_block)
|
||||
(control_structure)
|
||||
] @fold
|
||||
|
||||
@ -0,0 +1,101 @@
|
||||
; highlights.scm
|
||||
; See this for full list: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/CONTRIBUTING.md
|
||||
|
||||
; comments
|
||||
(line_comment) @comment
|
||||
(block_comment) @comment
|
||||
|
||||
; Argument definition
|
||||
(argument name: (identifier) @parameter)
|
||||
|
||||
; Variables
|
||||
(local_var name: (identifier) @variable)
|
||||
(environment_var name:(identifier) @variable.builtin)
|
||||
(builtin_var) @constant.builtin
|
||||
|
||||
; (variable) @variable
|
||||
|
||||
; Functions
|
||||
(function_definition
|
||||
name: (variable) @function)
|
||||
|
||||
; For function calls
|
||||
(named_argument
|
||||
name: (identifier) @property)
|
||||
|
||||
; Methods
|
||||
(method_call
|
||||
name: (method_name) @method)
|
||||
|
||||
; Classes
|
||||
(class) @type
|
||||
|
||||
; Literals
|
||||
(number) @number
|
||||
;(pi_statement) @constant.builtin
|
||||
(float) @float
|
||||
|
||||
(string) @string
|
||||
(symbol) @string.special
|
||||
|
||||
; Operators
|
||||
[
|
||||
"&&"
|
||||
"||"
|
||||
"&"
|
||||
"|"
|
||||
"^"
|
||||
"=="
|
||||
"!="
|
||||
"<"
|
||||
"<="
|
||||
">"
|
||||
">="
|
||||
"<<"
|
||||
">>"
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"%"
|
||||
"="
|
||||
"|@|"
|
||||
"@@"
|
||||
"@|@"
|
||||
] @operator
|
||||
|
||||
; Keywords
|
||||
[
|
||||
"arg"
|
||||
"classvar"
|
||||
"const"
|
||||
; "super"
|
||||
; "this"
|
||||
"var"
|
||||
] @keyword
|
||||
|
||||
; Brackets
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
"|"
|
||||
] @punctuation.bracket
|
||||
|
||||
; Delimeters
|
||||
[
|
||||
";"
|
||||
"."
|
||||
","
|
||||
] @punctuation.delimiter
|
||||
|
||||
; control structure
|
||||
(control_structure) @conditional
|
||||
|
||||
(escape_sequence) @string.special
|
||||
|
||||
; SinOsc.ar()!2
|
||||
(duplicated_statement) @repeat
|
||||
@ -0,0 +1,31 @@
|
||||
[
|
||||
(function_block)
|
||||
(binary_expression)
|
||||
(collection)
|
||||
(indexed_collection)
|
||||
(parameter_call_list)
|
||||
(function_call)
|
||||
(class_def)
|
||||
(classvar)
|
||||
(const)
|
||||
(instance_var)
|
||||
(variable_definition)
|
||||
(variable_definition_sequence (variable_definition))
|
||||
(control_structure)
|
||||
(return_statement)
|
||||
] @indent
|
||||
|
||||
[
|
||||
(parameter_call_list (argument_calls))
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @branch
|
||||
|
||||
[
|
||||
(block_comment)
|
||||
(line_comment)
|
||||
] @ignore
|
||||
@ -0,0 +1,22 @@
|
||||
; Scopes
|
||||
[
|
||||
(function_call)
|
||||
(code_block)
|
||||
(function_block)
|
||||
(control_structure)
|
||||
] @scope
|
||||
|
||||
; Definitions
|
||||
(argument
|
||||
name: (identifier) @definition.parameter)
|
||||
|
||||
(variable_definition
|
||||
name: (variable (local_var (identifier) @definition.var)))
|
||||
|
||||
(variable_definition
|
||||
name: (variable (environment_var (identifier) @definition.var)))
|
||||
|
||||
(function_definition
|
||||
name: (variable) @definition.var)
|
||||
|
||||
(identifier) @reference
|
||||
Reference in New Issue
Block a user