branch: elpa/raku-mode
commit 6553c30843d5b81bd06e0563e111adc79866a78f
Author: Hinrik Örn Sigurðsson <[email protected]>
Commit: Hinrik Örn Sigurðsson <[email protected]>
Highlight ::?CLASS and such correctly
---
perl6-font-lock.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 90bc64544a..754f6b301c 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -535,7 +535,8 @@ LIMIT can be used to bound the search."
(group (symbol identifier)))
1 'perl6-label)
(,(perl6-rx
- (or symbol-start "::")
+ (or symbol-start
+ (and "::" (opt "?")))
identifier
(opt (0+ "::" identifier))
(opt "::"))