Shell variable with remove prefix is visually commented out because of "#" #1518
Labels
better to fix
unwanted behaviors better to fix
syntax highlight
issues related to syntax highlighting
Description
Hi,
in my scripts i use code like that to remove a prefix from a variable:
mystring="test_12345"
echo ${mystring#test_}
CotEditor interpret the "#" as an comment and commented the rest of that line out. Maybe there is a way to improve the syntax inspector. Easy workaround is to use "echo ${mystring/test_/}".
To Reproduce
mystring="test_12345"
echo ${mystring#test_}
#test_} -> will be commented out from design
Expected behavior
No response
CotEditor version
4.5.9
macOS version
13.5.2
Additional context
No response
The text was updated successfully, but these errors were encountered: