atom-language
atom-language copied to clipboard
Syntax after heretodoc broken by .comb method
If a
q:to/DATA/
is used together with a Str method, such as .comb, the syntax highlighting is broken afterwards. Problem occurs in atom editor.
Example Code
use v6.c;
my $ok-val = q:to/DATA/;
Here is some
multiline text
And a bit more.
DATA
my @desyntax = q:to/MDATA/.comb(/\N+/);
Here is some
multiline text
And a bit more.
MDATA
my $should-be-normal-but-is-not = 'p';
dd $ok-val;
dd @desyntax;
dd $should-be-normal-but-is-not;
# Code from MDATA down is still highlighted as heretodoc
# The problem originates with the .comb method
# Code runs OK. (See picture)
Picture [optional]
Leave this in. For internal use.
- [ ] Fixed in Master
- [ ] Fixed in Release
- [ ] Has Tests
- [ ] Passes Tests