emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/raku-mode 1277ec749e 097/253: Fix highlighting of words in


From: ELPA Syncer
Subject: [nongnu] elpa/raku-mode 1277ec749e 097/253: Fix highlighting of words in identifers
Date: Sat, 29 Jan 2022 08:28:45 -0500 (EST)

branch: elpa/raku-mode
commit 1277ec749e58baecc3cbb97a6ab547025e4763a6
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>

    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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]