My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
  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, Nov 30, 2008
View this file:

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
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
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:
Aug 14, 2009
Project Member #3
 Issue 83  has been merged into this issue.
Sep 29, 2009
This also applies to the other quote operators
May 2, 2013
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 ( You might get some tips from them.
Sign in to add a comment

Powered by Google Project Hosting