branch: elpa/raku-mode
commit 19f42439340cb1a7e944b431ee36655b8a41afa3
Author: Hinrik Örn Sigurðsson <[email protected]>
Commit: Hinrik Örn Sigurðsson <[email protected]>
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)))))