From f5c4671bfbad96bf346bd7e9a21fc4317b4959df Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 3 Dec 2022 17:00:20 +0530 Subject: Adds most of the tools --- .../runtime/queries/glsl/folds.scm | 1 + .../runtime/queries/glsl/highlights.scm | 37 ++++++++++++++++++++++ .../runtime/queries/glsl/indents.toml | 19 +++++++++++ .../runtime/queries/glsl/injections.scm | 4 +++ .../runtime/queries/glsl/locals.scm | 1 + 5 files changed, 62 insertions(+) create mode 100644 helix-22.03-x86_64-windows/runtime/queries/glsl/folds.scm create mode 100644 helix-22.03-x86_64-windows/runtime/queries/glsl/highlights.scm create mode 100644 helix-22.03-x86_64-windows/runtime/queries/glsl/indents.toml create mode 100644 helix-22.03-x86_64-windows/runtime/queries/glsl/injections.scm create mode 100644 helix-22.03-x86_64-windows/runtime/queries/glsl/locals.scm (limited to 'helix-22.03-x86_64-windows/runtime/queries/glsl') diff --git a/helix-22.03-x86_64-windows/runtime/queries/glsl/folds.scm b/helix-22.03-x86_64-windows/runtime/queries/glsl/folds.scm new file mode 100644 index 0000000..a5a5208 --- /dev/null +++ b/helix-22.03-x86_64-windows/runtime/queries/glsl/folds.scm @@ -0,0 +1 @@ +; inherits: c diff --git a/helix-22.03-x86_64-windows/runtime/queries/glsl/highlights.scm b/helix-22.03-x86_64-windows/runtime/queries/glsl/highlights.scm new file mode 100644 index 0000000..af2a049 --- /dev/null +++ b/helix-22.03-x86_64-windows/runtime/queries/glsl/highlights.scm @@ -0,0 +1,37 @@ +; inherits: c + +[ + "in" + "out" + "inout" + "uniform" + "shared" + "layout" + "attribute" + "varying" + "buffer" + "coherent" + "readonly" + "writeonly" + "precision" + "highp" + "mediump" + "lowp" + "centroid" + "sample" + "patch" + "smooth" + "flat" + "noperspective" + "invariant" + "precise" +] @keyword + +"subroutine" @keyword.function + +(extension_storage_class) @attribute + +( + (identifier) @variable.builtin + (#match? @variable.builtin "^gl_") +) diff --git a/helix-22.03-x86_64-windows/runtime/queries/glsl/indents.toml b/helix-22.03-x86_64-windows/runtime/queries/glsl/indents.toml new file mode 100644 index 0000000..a7fd499 --- /dev/null +++ b/helix-22.03-x86_64-windows/runtime/queries/glsl/indents.toml @@ -0,0 +1,19 @@ +indent = [ + "init_declarator", + "compound_statement", + "preproc_arg", + "field_declaration_list", + "case_statement", + "conditional_expression", + "enumerator_list", + "struct_specifier", + "compound_literal_expression" +] + +outdent = [ + "#define", + "#ifdef", + "#endif", + "{", + "}" +] diff --git a/helix-22.03-x86_64-windows/runtime/queries/glsl/injections.scm b/helix-22.03-x86_64-windows/runtime/queries/glsl/injections.scm new file mode 100644 index 0000000..6330ea3 --- /dev/null +++ b/helix-22.03-x86_64-windows/runtime/queries/glsl/injections.scm @@ -0,0 +1,4 @@ +; inherits: c + +((preproc_arg) @injection.content + (#set! injection.language "glsl")) diff --git a/helix-22.03-x86_64-windows/runtime/queries/glsl/locals.scm b/helix-22.03-x86_64-windows/runtime/queries/glsl/locals.scm new file mode 100644 index 0000000..a5a5208 --- /dev/null +++ b/helix-22.03-x86_64-windows/runtime/queries/glsl/locals.scm @@ -0,0 +1 @@ +; inherits: c -- cgit v1.2.3