nvim-treesitter/queries/supercollider/highlights.scm
Santos Gallegos 647268183f
Highlights: define string.special (#1551)
* Highlights: define string.special

This was in our CONTRIBUTING.md file,
but wasn't defined.

Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1405

* Use string.escape
2021-07-11 15:59:53 -05:00

99 lines
1.2 KiB
Scheme

; 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.escape
; SinOsc.ar()!2
(duplicated_statement) @repeat