branch: elpa/raku-mode commit c1b2f9e1125db64bc93a860bf1f7953c5d47cc02 Author: Hinrik Örn Sigurðsson <hinrik....@gmail.com> Commit: Hinrik Örn Sigurðsson <hinrik....@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)