]> git.eshelyaron.com Git - emacs.git/commitdiff
(perl-font-lock-keywords-2):
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 22 Mar 2005 19:43:13 +0000 (19:43 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 22 Mar 2005 19:43:13 +0000 (19:43 +0000)
Accept qualified variable and function names.

lisp/progmodes/perl-mode.el

index c65ae0d284e2d77c46f535398e1c38c2b44c327e..6fcd16e97c6c7ddf8f4eae2cae881892ab8f7b85 100644 (file)
@@ -207,11 +207,11 @@ The expansion is entirely correct because it uses the C preprocessor."
     '("\\<\\(local\\|my\\)\\>" . font-lock-type-face)
     ;;
     ;; Fontify function, variable and file name references.
-    '("&\\(\\sw+\\)" 1 font-lock-function-name-face)
+    '("&\\(\\sw+\\(::\\sw+\\)*\\)" 1 font-lock-function-name-face)
     ;; Additionally underline non-scalar variables.  Maybe this is a bad idea.
     ;;'("[$@%*][#{]?\\(\\sw+\\)" 1 font-lock-variable-name-face)
-    '("[$*]{?\\(\\sw+\\)" 1 font-lock-variable-name-face)
-    '("\\([@%]\\|\\$#\\)\\(\\sw+\\)"
+    '("[$*]{?\\(\\sw+\\(::\\sw+\\)*\\)" 1 font-lock-variable-name-face)
+    '("\\([@%]\\|\\$#\\)\\(\\sw+\\(::\\sw+\\)*\\)"
       (2 (cons font-lock-variable-name-face '(underline))))
     '("<\\(\\sw+\\)>" 1 font-lock-constant-face)
     ;;