atom-language
atom-language copied to clipboard
Misparse in `sub infix:«"\c[INVISIBLE TIMES]"»` breaks highlights
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]
Leave this in. For internal use.
- [ ] Fixed in Master
- [ ] Fixed in Release
- [ ] Has Tests
- [ ] Passes Tests
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 }