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

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

[nongnu] elpa/raku-mode 19f4243934 125/253: Remove unnecessary check for


From: ELPA Syncer
Subject: [nongnu] elpa/raku-mode 19f4243934 125/253: Remove unnecessary check for syntactic context
Date: Sat, 29 Jan 2022 08:28:48 -0500 (EST)

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

    Remove unnecessary check for syntactic context
    
    We're already dealing with all comments inside perl6-syntax-properize,
    so we don't need to guard against comments that were started some other
    way (i.e. by a default syntax table entry).
---
 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 eb715ee84a..735d0325dc 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -433,8 +433,7 @@ Takes arguments START and END which delimit the region to 
propertize."
        (2 "_"))
       ;; comments
       ((rx "#")
-       (0 (ignore (if (eq (perl6-syntax-context) nil)
-                      (perl6-syntax-propertize-comment end)))))
+       (0 (ignore (perl6-syntax-propertize-comment end))))
       ;; angle-bracketed quoting construct
       ((rx (1+ (char "<«")))
        (0 (ignore (perl6-syntax-propertize-angles (match-string 0)))))



reply via email to

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