branch: elpa/raku-mode
commit 1277ec749e58baecc3cbb97a6ab547025e4763a6
Author: Hinrik Örn Sigurðsson <[email protected]>
Commit: Hinrik Örn Sigurðsson <[email protected]>
Fix highlighting of words in identifers
This regressed in c93daf2. They should have 'word' syntax, not 'symbol'.
---
perl6-font-lock.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index dbe0ba4c39..f27ccb0b93 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -382,9 +382,10 @@ Takes arguments START and END which delimit the region to
propertize."
((rx (regex "[_[:alnum:]]") (group (any "-'")) (regex "[_[:alpha:]]"))
(1 "_"))
;; same for "::" around identifiers
- ((perl6-rx (or (and (opt identifier) "::" symbol-start)
- (and identifier "::")))
- (0 "_"))
+ ((perl6-rx (or (and (opt identifier) (group "::") symbol-start)
+ (and identifier (group "::"))))
+ (1 "_")
+ (2 "_"))
((rx "#" (any "`|="))
(0 (ignore (perl6-syntax-propertize-embedded-comment))))
((rx "#" (0+ not-newline))