Skip to content

Commit

Permalink
Fix Haskell single line comments by adding space
Browse files Browse the repository at this point in the history
Haskell single line comments consist of at least two dashes "--",
not followed by special symbol.
So in practice everywhere in code you will see a space following "--".
Reference: Haskell 2010 Language Report -> Chapter 2 -> Lexical Structure
  • Loading branch information
AleXoundOS committed May 5, 2016
1 parent a291a42 commit 6b60897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/filedefs/filetypes.haskell
Expand Up @@ -51,7 +51,7 @@ mime_type=text/x-haskell
#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

# single comments, like # in this file
comment_single=--
comment_single=--\s
# multiline comments
comment_open={-
comment_close=-}
Expand Down

0 comments on commit 6b60897

Please sign in to comment.