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 (Saint) 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