Skip to content

Bash syntax highlighting bug when using comments in backticks #34643

@ssynix

Description

@ssynix
  • VSCode Version: 1.16.1
  • OS Version: MacOS Sierra

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.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buglanguages-basicBasic language support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions