diff options
| author | Connor Lay (Clay) <connorlay@pm.me> | 2022-02-12 17:58:14 -0800 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-15 19:01:02 +0100 |
| commit | 00dce4478066b84caa6af0a25fcca79fa32b58a3 (patch) | |
| tree | 4beb9f8dc253d50e5bf2d0aede9a8b7ec4339e59 /queries/gleam | |
| parent | Gleam indentation tests (diff) | |
| download | nvim-treesitter-00dce4478066b84caa6af0a25fcca79fa32b58a3.tar nvim-treesitter-00dce4478066b84caa6af0a25fcca79fa32b58a3.tar.gz nvim-treesitter-00dce4478066b84caa6af0a25fcca79fa32b58a3.tar.bz2 nvim-treesitter-00dce4478066b84caa6af0a25fcca79fa32b58a3.tar.lz nvim-treesitter-00dce4478066b84caa6af0a25fcca79fa32b58a3.tar.xz nvim-treesitter-00dce4478066b84caa6af0a25fcca79fa32b58a3.tar.zst nvim-treesitter-00dce4478066b84caa6af0a25fcca79fa32b58a3.zip | |
Gleam highlight tests
Diffstat (limited to 'queries/gleam')
| -rw-r--r-- | queries/gleam/highlights.scm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/queries/gleam/highlights.scm b/queries/gleam/highlights.scm index 33c54a355..eadacce61 100644 --- a/queries/gleam/highlights.scm +++ b/queries/gleam/highlights.scm @@ -82,6 +82,9 @@ "||" ] @operator +; Identifiers +(identifier) @variable + ; Comments [ (module_comment) @@ -101,9 +104,6 @@ (remote_type_identifier module: (identifier) @namespace) (unqualified_import name: (identifier) @function) -; Identifiers -(identifier) @variable - ; Strings (string) @string @@ -125,10 +125,14 @@ (record arguments: (arguments (argument label: (label) @property ":" @property)?)) (record_pattern_argument label: (label) @property ":" @property) (record_update_argument label: (label) @property ":" @property) +(field_access record: (identifier) @variable field: (label) @property) ; Type Constructors (type_constructor_argument label: (label) @property ":" @property) +; Type Parameters +(type_parameter) @parameter + ; Types ((type_identifier) @type (#not-any-of? @type "True" "False")) @@ -145,10 +149,11 @@ (function name: (identifier) @function) (public_function name: (identifier) @function) (function_call function: (identifier) @function) -(function_call function: (field_access record: (identifier) @namespace field: (label) @function)) +(function_call function: (field_access field: (label) @function)) ; External Functions (public_external_function name: (identifier) @function) +(external_function name: (identifier) @function) (external_function_body (string) @namespace . (string) @function) ; Pipe Operator |
