ModernPerl-sublime
ModernPerl-sublime copied to clipboard
Paired <, > on one line highlighted as a string
Despite conding style ;-), anywhere in nested constructions:
# broken: "$b || $c" highlighted as a string:
$a<$b || $c>0
# extra space, before or after, cures:
$a< $b || $c>0
$a<$b || $c >0
It's difficult to make this work right because, unlike the Perl parser, the syntax has no understanding of what's an operator and what's a term. I went to a great deal of effort to make // detect when it should be regex and when it should be division, but obviously I forgot to do this for <>.