Skip to content

Commit bd89438

Browse files
authored
Merge pull request #1880 from sellout/cabal-comment-highlighting
Correct Cabal comment syntax highlighting
2 parents e5d3202 + 5f99a51 commit bd89438

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haskell-cabal.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ By default these are:
100100
;; The comment syntax can't be described simply in syntax-table.
101101
;; We could use font-lock-syntactic-keywords, but is it worth it?
102102
'(;; comments
103-
("^[ \t]*--.*" . font-lock-comment-face)
103+
("^[ \t]*\\(--\\)\\(.*\\)"
104+
(1 font-lock-comment-delimiter-face) (2 font-lock-comment-face))
104105
;; fields ending in colon
105106
("^ *\\([^ \t:]+\\):\\( +\\|$\\)" (1 font-lock-keyword-face))
106107
;; stanzas that start a line, followed by an identifier

0 commit comments

Comments
 (0)