diff options
author | Phil | 2024-03-18 12:13:23 +0000 |
---|---|---|
committer | GitHub | 2024-03-18 12:13:23 +0000 |
commit | 94d210c9bf78af1d170534bc3398b334f289be33 (patch) | |
tree | 0a03bd4e1b1f68acb6b1468248bc535bf5edbec1 /runtime/queries/supercollider/highlights.scm | |
parent | 4ffe9935339a2bd3085720ef6bea62678e9d7e95 (diff) |
Add initial support for SuperCollider (#9329)
Diffstat (limited to 'runtime/queries/supercollider/highlights.scm')
-rw-r--r-- | runtime/queries/supercollider/highlights.scm | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/runtime/queries/supercollider/highlights.scm b/runtime/queries/supercollider/highlights.scm new file mode 100644 index 00000000..0128606d --- /dev/null +++ b/runtime/queries/supercollider/highlights.scm @@ -0,0 +1,76 @@ +(line_comment) @comment.line +(block_comment) @comment.block + +(argument name: (identifier) @variable.parameter) + +(local_var name: (identifier) @variable) +(environment_var name:(identifier) @variable.builtin) +(builtin_var) @constant.builtin + +(function_definition name: (variable) @function) + +(named_argument name: (identifier) @variable.other.member) + +(method_call name: (method_name) @function.method) + +(class) @keyword.storage.type + +(number) @constant.numeric +(float) @constant.numeric.float + +(string) @string +(symbol) @string.special.symbol + +[ +"&&" +"||" +"&" +"|" +"^" +"==" +"!=" +"<" +"<=" +">" +">=" +"<<" +">>" +"+" +"-" +"*" +"/" +"%" +"=" +"|@|" +"@@" +"@|@" +] @operator + +[ +"arg" +"classvar" +"const" +"var" +] @keyword + +[ + "(" + ")" + "[" + "]" + "{" + "}" + "|" +] @punctuation.bracket + +[ + ";" + "." + "," +] @punctuation.delimiter + +(control_structure) @keyword.control.conditional + +(escape_sequence) @string.special + +(duplicated_statement) @keyword.control.repeat |