Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-01-24 11:49 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (258 votes). Check out past polls.