Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: cperl-mode inconsistent syntax highlighting

by LanX (Saint)
on Mar 09, 2012 at 14:27 UTC ( [id://958718]=note: print w/replies, xml ) Need Help??


in reply to Re: cperl-mode inconsistent syntax highlighting
in thread cperl-mode inconsistent syntax highlighting

++ correct answer! :)

I'm now sitting at a new system and experiencing the same effect with emacs 23.2.1 and cperl 6.2.

But this line has to be executed at startup in init.el (or .emacsrc or whatever) ...

Note that that variable is only read at initialization time for the variable `cperl-font-lock-keywords-2', so changing it after you +'ve entered CPerl mode the first time will have no effect.

This setting can also be done per GUI with M-x customize-group RET cperl, so no need to edit init.el manually.

Cheers Rolf

Replies are listed 'Best First'.
Re^3: cperl-mode inconsistent syntax highlighting
by choroba (Cardinal) on Mar 09, 2012 at 14:37 UTC
    You might also want to apply my patch to cperl that highlights variables with explicit package names, too (it is a simplification, but works for correct code).
      Thanks, but is this just a branch for git-hub or did Ilya officially pass maintainership to J. Rockway?

      Cheers Rolf

        In fact, I have no idea. I just googled for cperl that supports some newer keywords and found this one, so I submitted some patches for it to behave.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://958718]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found