branch: elpa/raku-mode
commit 4556ff4e9b75b1ca936f9806e87f214c233079fd
Author: Hinrik Örn Sigurðsson <[email protected]>
Commit: Hinrik Örn Sigurðsson <[email protected]>
Support non-ASCII identifiers
---
perl6-font-lock.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 4beeb05b59..0f5e67a690 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -153,8 +153,7 @@
"KitchenSink" "Role" "Int" "Rat" "Buf" "UInt"
"Abstraction" "Numeric" "Real" "Nil"
"Mu")))
- (identifier . ,(rx (any "A-Za-z") (0+ (any "A-Za-z0-9"))
- (0+ (any "-'") (any "A-Za-z") (0+ (any
"A-Za-z0-9")))))))
+ (identifier . ,(rx alpha (0+ alnum) (0+ (any "-'") alpha (0+ alnum))))))
(defmacro perl6-rx (&rest sexps)
"Specialized `rx' variant for perl6-mode."