diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-06-12 09:54:30 -0600 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | 692b051b09935653befdb8f7ba8afdb640adf17b (patch) | |
| tree | 167162b6b129ae04f68c5735078521a72917c742 /queries/faust | |
| parent | feat(c-family): inherit injections (diff) | |
| download | nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2 nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip | |
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'queries/faust')
| -rw-r--r-- | queries/faust/highlights.scm | 219 | ||||
| -rw-r--r-- | queries/faust/injections.scm | 2 |
2 files changed, 0 insertions, 221 deletions
diff --git a/queries/faust/highlights.scm b/queries/faust/highlights.scm deleted file mode 100644 index 6e7ef1d92..000000000 --- a/queries/faust/highlights.scm +++ /dev/null @@ -1,219 +0,0 @@ -; Identifiers -(identifier) @variable - -[ - "process" - "effect" -] @variable.builtin - -(parameters - (identifier)) @variable.parameter - -(access - definition: (identifier) @variable.member) - -(global_metadata - key: (identifier) @variable.member) - -(function_metadata - function_name: (identifier) @variable.member) - -; Literals -(_ - filename: (string)) @string.special.path - -(documentation) @string.documentation @spell - -[ - (string) - (fstring) -] @string - -(int) @number - -(real) @number.float - -; Types -(_ - type: [ - (int_type) - (float_type) - (any_type) - ]) @type.builtin - -[ - (single_precision) - (double_precision) - (quad_precision) - (fixed_point_precision) -] @attribute - -; Functions -(function_definition - name: (identifier) @function) - -(function_names) @function - -(function_call - (identifier) @function.call) - -(function_call - (access - definition: (identifier) @function.call)) - -[ - "exp" - "log" - "log10" - "sqrt" - "abs" - "floor" - "ceil" - "rint" - "round" - "acos" - "asin" - "atan" - "cos" - "sin" - "tan" - "atan2" - "int" - "float" - "pow" - "min" - "max" - "fmod" - "remainder" - "prefix" - "attach" - "enable" - "control" - "rdtable" - "rwtable" - "select2" - "select3" - "lowest" - "highest" - "assertbounds" - (par) - (seq) - (sum) - (prod) - (component) - (library) - (vslider_type) - (hslider_type) - (nentry_type) - (vbargraph_type) - (hbargraph_type) - (vgroup_type) - (hgroup_type) - (tgroup_type) - "button" - "checkbox" - "soundfile" - "inputs" - "outputs" - "route" -] @function.builtin - -; xor is a @keyword.operator -[ - (add) - (sub) - (mult) - (div) - (mod) - (pow) - (or) - (and) - (lshift) - (rshift) - (lt) - (le) - (gt) - (ge) - (eq) - (neq) - (delay) - (one_sample_delay) - "=" - "=>" - "->" -] @operator - -(recursive - "~" @operator) - -(sequential - ":" @operator) - -(split - "<:" @operator) - -(merge - ":>" @operator) - -(parallel - "," @operator) - -; Keywords -[ - (par) - (seq) - (sum) - (prod) -] @keyword.repeat - -(file_import - "import" @keyword.import) - -[ - (wire) - (cut) - (mem) - "declare" - "with" - "environment" - "case" - "ffunction" - "fconstant" - "fvariable" -] @keyword - -(xor) @keyword.operator - -; Punctuation -[ - "," - ";" - "." -] @punctuation.delimiter - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -; Comments -(comment) @comment @spell - -; Tags -[ - "<mdoc>" - "</mdoc>" - "<metadata>" - "</metadata>" - "<equation>" - "</equation>" - "<diagram>" - "</diagram>" - "<listing" - "<notice" - "/>" -] @tag diff --git a/queries/faust/injections.scm b/queries/faust/injections.scm deleted file mode 100644 index 2f0e58eb6..000000000 --- a/queries/faust/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) |
