My favorites | Sign in
Google
                
New issue | Search
for
| Advanced search | Search tips
Issue 57: Perl Syntax Hilighting Issue
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by mattj.morrison, Nov 30, 2008
View this file:
http://code.google.com/p/morrison-code/source/browse/trunk/Perl/Object.pm

notice after this line 

$methodName =~ s/.*:://;

everything is green.

the /// operator in Perl source code apparently causes a problem with the
syntax highlighting.


Comment 1 by mikesamuel, May 15, 2009
Yep.  Javascript syntax for regex literals doesn't conflict too much with C and java
but trying to recognize perl regexs in code that might not be perl causes bad things
to happen.

Do you know of a simple grammar that handles a good chunk of perl so that I can roll
a perl mode?
Comment 2 by mattj.morrison, May 30, 2009
I think the //, m//, tr/// and s/// operators are probably the ones that will cause
the most problems.  Here is an example of some JavaScript that someone wrote to
highlight perl syntax: http://www.perlmonks.org/?node_id=336126
Comment 3 by mikesamuel, Aug 14, 2009
 Issue 83  has been merged into this issue.
Comment 4 by B2Gills, Sep 29, 2009
This also applies to the other quote operators 
http://perldoc.perl.org/perlop.html#Quote-Like-Operators
Sign in to add a comment