diff options
| author | Chong Yidong | 2011-05-08 14:23:11 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-05-08 14:23:11 -0400 |
| commit | 085f5d7dcae1d423054ea0dd0c87382ee01cc6fa (patch) | |
| tree | 409268f6184263cc9ed8a4b2f68585b46adfdb15 | |
| parent | d9c54a06a0883f6be111b498dc44a4fe38c7f49e (diff) | |
| download | emacs-085f5d7dcae1d423054ea0dd0c87382ee01cc6fa.tar.gz emacs-085f5d7dcae1d423054ea0dd0c87382ee01cc6fa.zip | |
Handle "my" and "our" keywords in Perl imenu (Bug#8261).
* progmodes/perl-mode.el (perl-imenu-generic-expression): Only match
variables declared via `my' or `our'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3df4ba354eb..3d2cb34730d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-05-08 Ralph Schleicher <rs@ralph-schleicher.de> | ||
| 2 | |||
| 3 | * progmodes/perl-mode.el (perl-imenu-generic-expression): Only | ||
| 4 | match variables declared via `my' or `our' (Bug#8261). | ||
| 5 | |||
| 1 | 2011-05-08 Chong Yidong <cyd@stupidchicken.com> | 6 | 2011-05-08 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * progmodes/grep.el (grep-mode-font-lock-keywords): Remove | 8 | * progmodes/grep.el (grep-mode-font-lock-keywords): Remove |
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index ed628730fc1..8ca8c690f92 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -166,7 +166,7 @@ The expansion is entirely correct because it uses the C preprocessor." | |||
| 166 | '(;; Functions | 166 | '(;; Functions |
| 167 | (nil "^sub\\s-+\\([-A-Za-z0-9+_:]+\\)" 1) | 167 | (nil "^sub\\s-+\\([-A-Za-z0-9+_:]+\\)" 1) |
| 168 | ;;Variables | 168 | ;;Variables |
| 169 | ("Variables" "^\\([$@%][-A-Za-z0-9+_:]+\\)\\s-*=" 1) | 169 | ("Variables" "^\\(?:my\\|our\\)\\s-+\\([$@%][-A-Za-z0-9+_:]+\\)\\s-*=" 1) |
| 170 | ("Packages" "^package\\s-+\\([-A-Za-z0-9+_:]+\\);" 1) | 170 | ("Packages" "^package\\s-+\\([-A-Za-z0-9+_:]+\\);" 1) |
| 171 | ("Doc sections" "^=head[0-9][ \t]+\\(.*\\)" 1)) | 171 | ("Doc sections" "^=head[0-9][ \t]+\\(.*\\)" 1)) |
| 172 | "Imenu generic expression for Perl mode. See `imenu-generic-expression'.") | 172 | "Imenu generic expression for Perl mode. See `imenu-generic-expression'.") |