branch: elpa/raku-mode
commit 6c97f87fd8556cc0dc7a6754ab2237ea815bf5a4
Author: Hinrik Örn Sigurðsson <[email protected]>
Commit: Hinrik Örn Sigurðsson <[email protected]>
Correctly highlight ::*Foo::Bar
---
perl6-font-lock.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 5c85bbe60c..de3546d2f8 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -626,11 +626,12 @@ LIMIT can be used to bound the search."
;; identifiers with colons
(,(perl6-rx
(or symbol-start
- (and "::" (opt "?")))
+ (and "::" (group (opt (regex "[?*]")))))
identifier
(opt (0+ "::" identifier))
(opt "::"))
- 0 'perl6-identifier)
+ (0 'perl6-identifier)
+ (1 'perl6-twigil t t))
;; numbers
(,(perl6-rx (or bol (regex "[^[:digit:]]")) number)
(1 'perl6-number)