From fe06e6fbec85e9b82d5d44c3822f72146a6bce49 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Sun, 6 Sep 2020 12:31:40 -0500 Subject: Bash: fix hl capture groups Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/387 --- queries/bash/highlights.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm index 892546fc2..783b149e8 100644 --- a/queries/bash/highlights.scm +++ b/queries/bash/highlights.scm @@ -13,6 +13,10 @@ (heredoc_start) ] @punctuation.delimiter +[ + "$" +] @punctuation.special + [ ">" "<" @@ -31,6 +35,8 @@ (heredoc_body) ] @string +(variable_assignment (word) @string) + [ "if" "then" @@ -95,9 +101,6 @@ descriptor: (file_descriptor) @operator destination: (word) @parameter) - -("$" (variable_name)) @variable - (expansion [ "${" "}" ] @punctuation.bracket) @@ -107,4 +110,3 @@ value: (word) @parameter) (concatenation (word) @parameter) - -- cgit v1.2.3-70-g09d2