EmEditor always uses the # character in Perl syntax as a beginning of a comment, even when it should not be treated so, for example, when it’s inside a regular expression. For example, I have the following code:
if ($line =~ m/^#/) {
# $line contains a comment, do nothing
}
In this case EE highlights the ‘#’ character and rest of line as comment. It would not be a large problem, but as you can see, the line includes an opening brace. It is ignored by EE, and other braces become mismatched (Ctrl+] jumps to wrong place).
PS: I’m using EE 7.0 beta 25, but as I remember, the same problem occured in 6.0 too.