tree-sitter / tree-sitter-bash

Bash grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect highlighting of variable substitution with for string with opening braces "\{"

ZiViZiViZ opened this issue · comments

I've been requested by @lucario387 to report nvim-treesitter/nvim-treesitter#5601 over in this repo instead.
All the details are in the mentioned issue. LMK, if you need more info.

Maybe just write the issue as regression/... instead?

Hi @amaanq,

It looks better now but still not quiet right.
In line 4, } that is highlight to match the ${ in ${name%\}} is part of \} but instead, should be the right most } just before the closing " at the end of the line.

image

Code Snippet
name="${value#\{sd.cicd.}"
echo "${name%\}}"