Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: cperl-mode inconsistent syntax highlighting

by choroba (Bishop)
on Mar 07, 2012 at 10:19 UTC ( #958236=note: print w/replies, xml ) Need Help??


in reply to cperl-mode inconsistent syntax highlighting

In more recent versions of cperl, you can (setq cperl-highlight-variables-indiscriminately t).

Replies are listed 'Best First'.
Re^2: cperl-mode inconsistent syntax highlighting
by LanX (Bishop) on Mar 09, 2012 at 14:27 UTC
    ++ 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

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://958236]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2018-07-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (472 votes). Check out past polls.

    Notices?