MadcapJake / language-perl6fe

»ö« Atom Perl 6 Support - Forgotten Edition »ö«
https://github.com/perl6/atom-language-perl6
Other
16 stars 3 forks source link

Quote characters in regex character classes are interpreted as the beginning of a string literal. #53

Open Xliff opened 7 years ago

Xliff commented 7 years ago

Issue Description

When dealing with character classes, I see a switch in highlighted style when using a single or double quote inside a regular expresssion character class.

Example Code

token separator { <[()<>@,;:"/\[\]?={}\s\t]> }

The double quote in the above line is interpreted as a string-begin rather than a part of the regular expression, as should be the case.

[ Note: Markdown properly handles the code shown above. See picture, below ]

Picture [optional]

You can find an image of the issue, here: https://gyazo.com/d9f8d4dfe1398500d16733948a904f20