GNOME Bugzilla – Bug 313000
error in syntax highlight for perl syntax
Last modified: 2005-09-18 16:41:43 UTC
Please describe the problem: some troubles in colors after blocks like this: ..... $res=~s/\'[a-z0-9][a-z0-9]/~/g; $npres=$res; ..... Steps to reproduce: by typing example source. Actual results: colors of code after this block come to green(color for vars) Expected results: notmal syntax colors Does this happen every time? yes Other information: it looks like root of problem is in single quote in regular(like: /'asdasd/).
did you come up with some new patterns already? Help can be found here: http://bluefish.openoffice.nl/manual/ch03s06.html#changing-highlighting-patterns if you have some better patterns, please attach them to this bug then we can add them to the default patterns.
Hmm. I cannot reproduce a buggy highlighting with the example code. It looks ok. Please update the highlighting patterns (maybe download them from CVS and replace the installed highlighting(.default)) and test again (backup your .bluefish/highlighting* then go to Preferences > Highlighting syntax and pull the reset button). Does the highlighting work now?
Is anyone able to reproduce this issue with the latest highlighting pattern (I cannot reproduce it)? If not, we can close this bug.
I can reproduce what appears to be this bug even with the updated highlighting pattern from bug# 315324. See if you have a file named dumpvar.pl on your system. It comes with Perl 5.8.6 on my system. Look starting at line 73.
Closing this bug. This appears to have been fixed with the latest updates to the Perl highlighting patterns in CVS.