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

Misparse in sub infix:«"\c[INVISIBLE TIMES]"» breaks highlights #74

Open
4 tasks
zoffixznet opened this issue Nov 28, 2017 · 1 comment
Open
4 tasks

Comments

@zoffixznet
Copy link
Contributor

Seems using «"\c[...]"» construct to define routine name busts highlights for the code that follows.

Example Code

sub infix"\c[INVISIBLE TIMES]"» { $^a × $^b }
my \r = 42;
say "Area of the circle is " ~ π⁢r²;
# OUTPUT: «Area of the circle is 5541.76944093239␤»

Picture [optional]

untitled

Leave this in. For internal use.

  • Fixed in Master
  • Fixed in Release
  • Has Tests
  • Passes Tests
@zoffixznet
Copy link
Contributor Author

zoffixznet commented Nov 28, 2017

On closer inspection, it appears it's whitespace inside the term's name that messes these up. Workaround for my case is to drop the doublequotes: sub infix:«\c[INVISIBLE TIMES]» { $^a × $^b }

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