atom/language-shellscript

Nested Single Quotes breaks Shell Syntax Highlighting

Opened this issue · 1 comments

Prerequisites

Description

Following code is not highlighted correctly, it is because of the the escaped \' within single quotes. This is a legal shell syntax because the single quoted string is prefixed with a $
echo $'aa\'bb'

Steps to Reproduce

Paste echo $'x\'x' in Atom editor wind with enabled shell syntax highlighting

Expected behavior:

Proper syntax highlighting

Actual behavior:

Broken syntax highlighting after nested single quote

Reproduces how often:

100%

Versions

1.38.2

rsese commented

Thanks for contributing!

We noticed that this looks like a duplicate of #146 so you can subscribe there for updates if you'd like.

If I'm misunderstanding and you think this is a different issue, please let me know.


Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.

For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.