diff --git a/haskell-cabal.el b/haskell-cabal.el index c0707009..4f2ab579 100644 --- a/haskell-cabal.el +++ b/haskell-cabal.el @@ -175,7 +175,7 @@ it from list if one of the following conditions are hold: (add-hook 'change-major-mode-hook 'haskell-cabal-unregister-buffer nil 'local) (add-hook 'kill-buffer-hook 'haskell-cabal-unregister-buffer nil 'local) (setq-local comment-start "-- ") - (setq-local comment-start-skip "\\(^[ \t]*\\)--[ \t]*") + (setq-local comment-start-skip "--[ \t]*") (setq-local comment-end "") (setq-local comment-end-skip "[ \t]*\\(\\s>\\|\n\\)") (setq-local indent-line-function 'haskell-cabal-indent-line)