textmate / shellscript.tmbundle

TextMate support for ShellScript
43 stars 29 forks source link

Bash syntax highlighting bug when using comments in backticks #44

Closed aeschli closed 7 years ago

aeschli commented 7 years ago

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.

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