I just noticed a bug in the Perl syntax coloring engine. If a hash key is the bare string 's' (without the quotes), it is treated as the substitution operator instead of a hash key. Adding unnecessary quotes around the 's' works around the problem.
I am using the most recent version (10.0.1).
Examples of incorrectly colored code follow:
dblog( $u, { s => $subject } );
This will "eat" all subsequent syntax coloring until the parser sees two more = symbols.
BBEdit bug report
Date: 2011-09-23 05:14 am (UTC)I just noticed a bug in the Perl syntax coloring engine. If a hash key is the bare string 's' (without the quotes), it is treated as the substitution operator instead of a hash key. Adding unnecessary quotes around the 's' works around the problem.
I am using the most recent version (10.0.1).
Examples of incorrectly colored code follow:
dblog( $u, { s => $subject } );This will "eat" all subsequent syntax coloring until the parser sees two more = symbols.
chomp $info->{s};Same, except looks for subsequent } symbols.
Thanks for listening.