Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax after heretodoc broken by .comb method #71

Open
4 tasks
finanalyst opened this issue Aug 27, 2017 · 0 comments
Open
4 tasks

Syntax after heretodoc broken by .comb method #71

finanalyst opened this issue Aug 27, 2017 · 0 comments

Comments

@finanalyst
Copy link
Collaborator

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant