diff options
author | farwyler | 2022-06-06 17:26:56 +0000 |
---|---|---|
committer | GitHub | 2022-06-06 17:26:56 +0000 |
commit | f0d1c855539cfeb8e66c3602a971857f8c20be0f (patch) | |
tree | 2037e57c2eb00adbd053d5c8cc2ae6c60ee7d23d /runtime/queries/openscad | |
parent | 26dbdb70fb29bdad2e875a776b70815bf5533a34 (diff) |
support for openscad (#2680)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime/queries/openscad')
-rw-r--r-- | runtime/queries/openscad/highlights.scm | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/runtime/queries/openscad/highlights.scm b/runtime/queries/openscad/highlights.scm new file mode 100644 index 00000000..c06738e8 --- /dev/null +++ b/runtime/queries/openscad/highlights.scm @@ -0,0 +1,63 @@ +(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
\ No newline at end of file |