diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 6197a53ee66..5e199fb0c33 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -135,7 +135,7 @@ | |||
| 135 | '(;; Functions | 135 | '(;; Functions |
| 136 | (nil "^[ \t]*sub\\s-+\\([-[:alnum:]+_:]+\\)" 1) | 136 | (nil "^[ \t]*sub\\s-+\\([-[:alnum:]+_:]+\\)" 1) |
| 137 | ;;Variables | 137 | ;;Variables |
| 138 | ("Variables" "^\\(?:my\\|our\\)\\s-+\\([$@%][-[:alnum:]+_:]+\\)\\s-*=" 1) | 138 | ("Variables" "^[ \t]*\\(?:anon\\|argument\\|has\\|local\\|my\\|our\\|state\\|supersede\\)\\s-+\\([$@%][-[:alnum:]+_:]+\\)\\s-*=" 1) |
| 139 | ("Packages" "^[ \t]*package\\s-+\\([-[:alnum:]+_:]+\\);" 1) | 139 | ("Packages" "^[ \t]*package\\s-+\\([-[:alnum:]+_:]+\\);" 1) |
| 140 | ("Doc sections" "^=head[0-9][ \t]+\\(.*\\)" 1)) | 140 | ("Doc sections" "^=head[0-9][ \t]+\\(.*\\)" 1)) |
| 141 | "Imenu generic expression for Perl mode. See `imenu-generic-expression'.") | 141 | "Imenu generic expression for Perl mode. See `imenu-generic-expression'.") |
| @@ -179,8 +179,9 @@ | |||
| 179 | "BEGIN" "END" "return" "exec" "eval") t) | 179 | "BEGIN" "END" "return" "exec" "eval") t) |
| 180 | "\\>") | 180 | "\\>") |
| 181 | ;; | 181 | ;; |
| 182 | ;; Fontify local and my keywords as types. | 182 | ;; Fontify declarators and prefixes as types. |
| 183 | ("\\<\\(local\\|my\\)\\>" . font-lock-type-face) | 183 | ("\\<\\(anon\\|argument\\|has\\|local\\|my\\|our\\|state\\|supersede\\)\\>" . font-lock-type-face) ; declarators |
| 184 | ("\\<\\(let\\|temp\\)\\>" . font-lock-type-face) ; prefixes | ||
| 184 | ;; | 185 | ;; |
| 185 | ;; Fontify function, variable and file name references. | 186 | ;; Fontify function, variable and file name references. |
| 186 | ("&\\(\\sw+\\(::\\sw+\\)*\\)" 1 font-lock-function-name-face) | 187 | ("&\\(\\sw+\\(::\\sw+\\)*\\)" 1 font-lock-function-name-face) |