diff options
| author | Omar Zeghouani <59267627+ram02z@users.noreply.github.com> | 2023-02-12 22:19:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-13 00:19:48 +0200 |
| commit | ab5cc6414e110724ef2e21c7126e5a7242ceba21 (patch) | |
| tree | 29510036c0479d88da79bc1b98e4991a1c222c23 | |
| parent | deprecate get_node_range and is_in_node_range (diff) | |
| download | nvim-treesitter-ab5cc6414e110724ef2e21c7126e5a7242ceba21.tar nvim-treesitter-ab5cc6414e110724ef2e21c7126e5a7242ceba21.tar.gz nvim-treesitter-ab5cc6414e110724ef2e21c7126e5a7242ceba21.tar.bz2 nvim-treesitter-ab5cc6414e110724ef2e21c7126e5a7242ceba21.tar.lz nvim-treesitter-ab5cc6414e110724ef2e21c7126e5a7242ceba21.tar.xz nvim-treesitter-ab5cc6414e110724ef2e21c7126e5a7242ceba21.tar.zst nvim-treesitter-ab5cc6414e110724ef2e21c7126e5a7242ceba21.zip | |
chore(fish): update test command highlight query (#4306)
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | queries/fish/highlights.scm | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lockfile.json b/lockfile.json index b3d641178..ecd3eb51c 100644 --- a/lockfile.json +++ b/lockfile.json @@ -108,7 +108,7 @@ "revision": "517195970428aacca60891b050aa53eabf4ba78d" }, "fish": { - "revision": "6675b56266b3f615fb112205b6b83a79315309c4" + "revision": "f9176908c9eb2e11eb684d79e1d00f3b29bd65c9" }, "foam": { "revision": "c238f4af9a5723a212cf1a4c9b31dd5c1d5270a2" diff --git a/queries/fish/highlights.scm b/queries/fish/highlights.scm index 505726819..9335ab4a2 100644 --- a/queries/fish/highlights.scm +++ b/queries/fish/highlights.scm @@ -19,7 +19,8 @@ argument: (word) @operator (#match? @operator "^(!?\\=|-[a-zA-Z]+)$")) ;; match operators of [ command -(test_command +(command + name: (word) @punctuation.bracket (#match? @punctuation.bracket "^\\[$") argument: (word) @operator (#match? @operator "^(!?\\=|-[a-zA-Z]+)$")) [ @@ -122,8 +123,6 @@ ] ) -(test_command (word) @function.builtin) - ;; Functions (function_definition ["function" "end"] @keyword.function) |
