Hi,
sometimes the matching bracket (ctrl+M) does not work as expected in perl syntax
highlighting, when the bracket is inside a regular expression and it is
escaped.

This is the example

if ($condition) {
  if ($userData =~ /^\{/) {
    $some_code_here; 
  }
}


(Basically I want to check if in the variable $userData there is a json data
structure so I check if it starts with { ; I could do in other ways but this
example shows this little bug in psPad ). 
The curly bracket inside the regular expression is escaped but psPad matches it
with the last one inthe 5th row.
The opened curly bracket after if ($condition) does not find any match (it is
shown in red).
Probably it does something similar also with other brackets but I don't have an
example ready right now.

Is there anything you can do?

Thanks
Massimo

-- 
<http://forum.pspad.com/read.php?2,66321,66321>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem