Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit b830f28

Browse files
bug 67: haskell line comments could not contain curly brackets.
1 parent 2dc257e commit b830f28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lang-hs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ PR.registerLangHandler(
7777
// dashes -> '--' {'-'}
7878
// opencom -> '{-'
7979
// closecom -> '-}'
80-
[PR.PR_COMMENT, /^(?:(?:--+(?:[^\r\n\x0C_:\"\'\(\),;\[\]`\{\}][^\r\n\x0C_]*)?(?=[\x0C\r\n]|$))|(?:\{-(?:[^-]|-+[^-\}])*-\}))/],
80+
[PR.PR_COMMENT, /^(?:(?:--+(?:[^\r\n\x0C]*)?)|(?:\{-(?:[^-]|-+[^-\}])*-\}))/],
8181
// reservedid -> case | class | data | default | deriving | do
8282
// | else | if | import | in | infix | infixl | infixr
8383
// | instance | let | module | newtype | of | then

0 commit comments

Comments
 (0)