branch: elpa/raku-mode
commit 47cda8e4302a315a6648a3293fd01347f60843f6
Author: Tom Browder <[email protected]>
Commit: Tom Browder <[email protected]>
add optional leading bang for private method names
---
perl6-imenu.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/perl6-imenu.el b/perl6-imenu.el
index 68f1a9bfc3..075b6347a8 100644
--- a/perl6-imenu.el
+++ b/perl6-imenu.el
@@ -48,6 +48,7 @@
; must have one of the five type identifiers
; followed by at least one space:
"\\(?:multi\\s-+sub\\|multi\\s-+method\\|sub\\|method\\|multi\\|proto\\)\\s-+"
+ "\\!?" ; optional private marker
"\\(" ; start capture group 1 for the sub name
perl6-name-regex
"\\|"