Indiscriminate highlighting of scalar variables #7

Closed
choroba opened this Issue Jun 30, 2011 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

choroba commented Jun 30, 2011

Scalars with package prefixes are not correctly highlighted ($Some::Package::var). Something like this should fix it:

--- cperl-mode.el       2011-06-29 18:36:02.643056200 +0200
+++ elisp/cperl-mode.el 2011-06-29 17:10:04.027108889 +0200
@@ -5934,7 +5934,7 @@
          (if cperl-highlight-variables-indiscriminately
              (setq t-font-lock-keywords-1
                    (append t-font-lock-keywords-1
-                           (list '("\\([$*]{?\\sw+\\)" 1
+                           (list '("\\([$*]{?[[:alnum:]_:]+\\)" 1
                                    font-lock-variable-name-face)))))
          (setq cperl-font-lock-keywords-1
                (if cperl-syntaxify-by-font-lock
Contributor

choroba commented Nov 3, 2013

Fixed in #18

@choroba choroba closed this Nov 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment