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

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

[nongnu] elpa/raku-mode c1b2f9e112 109/253: Less aggressive syntaxificat


From: ELPA Syncer
Subject: [nongnu] elpa/raku-mode c1b2f9e112 109/253: Less aggressive syntaxification of sigils/twigils
Date: Sat, 29 Jan 2022 08:28:46 -0500 (EST)

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

    Less aggressive syntaxification of sigils/twigils
---
 perl6-font-lock.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 7e26b81db4..715b45a174 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -449,9 +449,9 @@ Takes arguments START and END which delimit the region to 
propertize."
       ((perl6-rx variable)
        (1 ".p")
        (2 ".p")
-       ;; go back if we match a package name (e.g. $?FOO::BAR), so the
-       ;; colons can be syntax-propertized above
-       (3 (ignore (goto-char (match-beginning 3))))))
+       ;; go back to the end of the twigils/sigils, so other syntax
+       ;; rules above can be applied to later parts of the variable name
+       (4 (ignore (goto-char (or (match-end 2) (match-end 1)))))))
       start end)))
 
 (defun perl6-font-lock-syntactic-face (state)



reply via email to

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