Skip to content

Commit

Permalink
Remove unnecessary check for syntactic context
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
hinrik committed Oct 7, 2015
1 parent 155abad commit 19f4243
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions perl6-font-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))
Expand Down

0 comments on commit 19f4243

Please sign in to comment.