atom-language icon indicating copy to clipboard operation
atom-language copied to clipboard

Syntax after heretodoc broken by .comb method

Open finanalyst opened this issue 7 years ago • 0 comments

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]

hili-breaker

Leave this in. For internal use.

  • [ ] Fixed in Master
  • [ ] Fixed in Release
  • [ ] Has Tests
  • [ ] Passes Tests

finanalyst avatar Aug 27 '17 07:08 finanalyst