My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 57: Perl Syntax Hilighting Issue
7 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.mo...@gmail.com, Nov 30, 2008
View this file:
https://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.


May 15, 2009
Project Member #1 mikesamuel@gmail.com
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?
May 30, 2009
#2 mattj.mo...@gmail.com
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
Aug 14, 2009
Project Member #3 mikesamuel@gmail.com
 Issue 83  has been merged into this issue.
Sep 29, 2009
#4 B2Gi...@gmail.com
This also applies to the other quote operators 
http://perldoc.perl.org/perlop.html#Quote-Like-Operators
May 2, 2013
#5 allisonr...@gmail.com
This has also been a problem for me, with quote-like operators.

Perl syntax is non-trivial to parse. The best independent Perl syntax-highlighter I know is Padre (http://padre.perlide.org/). You might get some tips from them.
Sign in to add a comment

Powered by Google Project Hosting