ModernPerl-sublime icon indicating copy to clipboard operation
ModernPerl-sublime copied to clipboard

Paired <, > on one line highlighted as a string

Open nugged opened this issue 10 years ago • 1 comments

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

nugged avatar Mar 12 '15 18:03 nugged

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 <>.

Blaizer avatar Mar 20 '15 04:03 Blaizer