Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indiscriminate highlighting of scalar variables #7

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

Indiscriminate highlighting of scalar variables #7

choroba opened this issue Jun 30, 2011 · 1 comment

Comments

@choroba
Copy link
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
@choroba
Copy link
Contributor Author

choroba commented Nov 3, 2013

Fixed in #18

@choroba choroba closed this as completed Nov 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant