branch: elpa/raku-mode
commit 07b596cab62501aee9a448055bff3969d1342883
Author: Tom Browder <[email protected]>
Commit: Tom Browder <[email protected]>
one more tweak to catch all forms of subs
---
perl6-imenu.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/perl6-imenu.el b/perl6-imenu.el
index d2042895a2..0aea6caa5c 100644
--- a/perl6-imenu.el
+++ b/perl6-imenu.el
@@ -8,7 +8,7 @@
'(
;; the names are in reverse desired order since they are evaluated here
last first
("Variables"
"^\\s-*\\(?:my\\|our\\)\\s-+\\(\\(?:\\$\\|@\\|%\\)\\(?:[_[:alnum:]]+\\)\\)" 1)
- ("Subs/Methods"
"^\\s-*\\(?:my\\|our\\)\\s-+\\(?:sub\\|method\\|multi\\|multi\\s-+sub\\|multi\\s-+method:\\)\\s-+\\(.+)\\)"
1)
+ ("Subs/Methods"
"^\\s-*\\(?:my\\s-+\\|our\\s-+\\)?\\(?:multi\\s-+sub\\|multi\\s-+method\\|sub\\|method\\|multi\\)\\s-+\\(.+)\\)"
1)
)
"Define interesting points in the Perl 6 buffer for `imenu'.