diff options
| author | Jirgn <jirgn76@googlemail.com> | 2021-11-26 16:37:51 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-26 22:04:59 +0100 |
| commit | 979c32493d1edabb949badf00da9d130d966aaae (patch) | |
| tree | 1ecc73f323a2a72910d24714cab880acd8886d8f /queries/fusion | |
| parent | highlights(rust): organize keywords and literals (diff) | |
| download | nvim-treesitter-979c32493d1edabb949badf00da9d130d966aaae.tar nvim-treesitter-979c32493d1edabb949badf00da9d130d966aaae.tar.gz nvim-treesitter-979c32493d1edabb949badf00da9d130d966aaae.tar.bz2 nvim-treesitter-979c32493d1edabb949badf00da9d130d966aaae.tar.lz nvim-treesitter-979c32493d1edabb949badf00da9d130d966aaae.tar.xz nvim-treesitter-979c32493d1edabb949badf00da9d130d966aaae.tar.zst nvim-treesitter-979c32493d1edabb949badf00da9d130d966aaae.zip | |
feat: add fusion grammar and highlights
Diffstat (limited to 'queries/fusion')
| -rw-r--r-- | queries/fusion/highlights.scm | 87 | ||||
| -rw-r--r-- | queries/fusion/locals.scm | 3 |
2 files changed, 90 insertions, 0 deletions
diff --git a/queries/fusion/highlights.scm b/queries/fusion/highlights.scm new file mode 100644 index 000000000..057671e18 --- /dev/null +++ b/queries/fusion/highlights.scm @@ -0,0 +1,87 @@ +(comment) @comment + +; identifiers eel + +(eel_object_path + (eel_path_identifier) @variable) + +(eel_object_pair + key: (eel_property_name) @property) + +(eel_method_name) @function + +(eel_parameter) @variable + + + +; identifiers fusion +; ----------- + +(path_part) @property +(meta_property) @attribute +(prototype_signature + "prototype" @keyword + +) +(include_statement + "include" @include + ":" @punctation.delimiter + (source_file) @uri +) + +(namespace_declaration + "namespace" @keyword + (alias_namespace) @namespace) + +(identifier_type + name: (type_name) @type) + +; tokens +; ------ + +[ + (identifier_package) + (alias_namespace) +] @namespace + +[ + "=" + "<" + "&&" + "and" + "||" + "or" + "*" + "/" + "%" + "+" + "-" + "!" + "not" + (deletion) +] @operator + +(string) @string +(number) @number +(boolean) @boolean +(null) @constant.builtin + + +; punctation +; ---------- + +[ + "(" + ")" + "{" + "}" + "[" + "]" +] @punctation.bracket + +[ + ":" + "." + "?" +] @punctation.delimiter + diff --git a/queries/fusion/locals.scm b/queries/fusion/locals.scm new file mode 100644 index 000000000..c3724f4fd --- /dev/null +++ b/queries/fusion/locals.scm @@ -0,0 +1,3 @@ +(eel_arrow_function) @local.scope + +(eel_parameter) @local.definition |
