Today I get an interesting issue with my shellscript (mainly for Bash) highlighting package here.
As shown in the screenshot above, it highlights correctly but the scope ends wrongly.
It’s because after meeting <<EOF;
, we go into a heredoc context hence }
is not paired to {
which is in the previous context. After meeting EOF
, the heredoc ends, we pop current context and go back to a function context but there is already no }
to close the function context. Finally, the scope ends with a source.shell meta... meta...
but not a simple source.shell
.
Any thought to fix this? Two contexts are partially overlapping.