helix-mods/runtime/queries/openscad/highlights.scm
farwyler f0d1c85553
support for openscad (#2680)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2022-06-06 12:26:56 -05:00

63 lines
No EOL
783 B
Scheme

(number) @constant.numeric
(string) @string
(boolean) @constant.builtin.boolean
(include_path) @string.special.path
(parameters_declaration (identifier) @variable.parameter)
(function_declaration name: (identifier) @function)
(function_call function: (identifier) @function)
(module_call name: (identifier) @function)
(identifier) @variable
(special_variable) @variable.builtin
[
"function"
"let"
"assign"
] @keyword
[
"for"
"each"
"intersection_for"
] @keyword.control.repeat
[
"if"
] @keyword.control.conditional
[
"module"
"use"
"include"
] @keyword.control.import
[
"||"
"&&"
"=="
"!="
"<"
">"
"<="
">="
"+"
"-"
"*"
"/"
"%"
"^"
"?"
"!"
":"
] @operator
[
";"
","
"."
] @punctuation.delimiter
(comment) @comment