Open Sarisan opened 3 months ago
Originally in https://github.com/microsoft/vscode/issues/209602.
I'll not open a new issue because this is certainly related:
case $test in
foo)
# a comment
echo bar
;;
esac
case $test in
foo) # a comment
echo bar
;;
esac
The result is OK in the first case and not in the 2nd (lines 13 and 14). This happens every time we add a comment in the same line as the "pattern)".
Also, I think the "foo" should have the same color (string) as the "bar".
Theme: Dark Modern
Edit 2024-04-16: This is broken since 1.7.0
I've long held that C++ has the worst syntax known to man, but Bash sure do be trying to change my mind
should be fixed on v1.8.4
The OP example is fixed in v1.8.6, but this example is still not parsing correctly.
I'll not open a new issue because this is certainly related:
case $test in foo) # a comment echo bar ;; esac case $test in foo) # a comment echo bar ;; esac
The result is OK in the first case and not in the 2nd (lines 13 and 14). This happens every time we add a comment in the same line as the "pattern)".
Also, I think the "foo" should have the same color (string) as the "bar".
Theme: Dark Modern
Edit 2024-04-16: This is broken since 1.7.0
The OP example is fixed in v1.8.6, but this example is still not parsing correctly.
I think have a the same or a related issue:
Broken syntax highlight (with comment)
Working syntax highlight (without comment)
The code with a problem is:
It looks like:
GitHub Dark Default theme
It should look like:
Extension v1.6.3