mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-28 10:56:36 +00:00
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'.
This commit is contained in:
parent
d9c54a06a0
commit
085f5d7dca
@ -1,3 +1,8 @@
|
||||
2011-05-08 Ralph Schleicher <rs@ralph-schleicher.de>
|
||||
|
||||
* progmodes/perl-mode.el (perl-imenu-generic-expression): Only
|
||||
match variables declared via `my' or `our' (Bug#8261).
|
||||
|
||||
2011-05-08 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* progmodes/grep.el (grep-mode-font-lock-keywords): Remove
|
||||
|
@ -166,7 +166,7 @@ The expansion is entirely correct because it uses the C preprocessor."
|
||||
'(;; Functions
|
||||
(nil "^sub\\s-+\\([-A-Za-z0-9+_:]+\\)" 1)
|
||||
;;Variables
|
||||
("Variables" "^\\([$@%][-A-Za-z0-9+_:]+\\)\\s-*=" 1)
|
||||
("Variables" "^\\(?:my\\|our\\)\\s-+\\([$@%][-A-Za-z0-9+_:]+\\)\\s-*=" 1)
|
||||
("Packages" "^package\\s-+\\([-A-Za-z0-9+_:]+\\);" 1)
|
||||
("Doc sections" "^=head[0-9][ \t]+\\(.*\\)" 1))
|
||||
"Imenu generic expression for Perl mode. See `imenu-generic-expression'.")
|
||||
|
Loading…
Reference in New Issue
Block a user