I use the following style to insert inline documentation for long bash commands and their cryptic args.
foo \
-d `# we use d for something` \
-c `# we use c for something` \
...
The same snippet on vscode breaks syntax highlighting in other parts of the code, because it doesn't correctly detect the comment statement inside backticks. Use keywords (for, in), or quotes inside the comment statements to see the bug.
Copied from original issue: Microsoft/vscode#34643
From @ssynix on September 19, 2017 15:25
Steps to Reproduce:
I use the following style to insert inline documentation for long bash commands and their cryptic args.
The same snippet on vscode breaks syntax highlighting in other parts of the code, because it doesn't correctly detect the comment statement inside backticks. Use keywords (
for
,in
), or quotes inside the comment statements to see the bug.Copied from original issue: Microsoft/vscode#34643