For example, I have a Bash script like this:
echo ${foo/search/replace}
Let’s say that ‘foo’ is variables, and ‘search’ and ‘replace’ are most likely unquoted plain text.
My goal is to highlight ‘search’ and ‘replace’ with the same color of ‘source.shell’.
I.E., most likely white on a dark theme and black on a light theme.
(like http://i.imgur.com/j1BMrby.png on my VIM.)
Currently, ‘search’ and ‘replace’ are under the scope of ‘${…}’ (variable.other.bracket.shell) hence they are not the same color with source.shell.
I tried to add ‘scope: source.shell’ to them but in vain.
'source.shell variable.other.bracket.shell source.shell` is still rendered as ‘variable.other.bracket.shell’.
Any way to achieve this?