Skip to content

Commit 9780794

Browse files
authored
Merge pull request #1870 from Hi-Angel/fix-cabal-uncomment
haskell-cabal: fix (comment-dwim) by correcting comment-start-skip
2 parents 6a533c5 + 497811f commit 9780794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: haskell-cabal.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ it from list if one of the following conditions are hold:
175175
(add-hook 'change-major-mode-hook 'haskell-cabal-unregister-buffer nil 'local)
176176
(add-hook 'kill-buffer-hook 'haskell-cabal-unregister-buffer nil 'local)
177177
(setq-local comment-start "-- ")
178-
(setq-local comment-start-skip "\\(^[ \t]*\\)--[ \t]*")
178+
(setq-local comment-start-skip "--[ \t]*")
179179
(setq-local comment-end "")
180180
(setq-local comment-end-skip "[ \t]*\\(\\s>\\|\n\\)")
181181
(setq-local indent-line-function 'haskell-cabal-indent-line)

0 commit comments

Comments
 (0)