don't assume single quotes are balanced for Haskell (#218)

This commit is contained in:
Rijnard van Tonder 2020-11-27 15:33:54 -07:00 committed by GitHub
parent 86b252c68b
commit b1e89ec38d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -735,6 +735,10 @@ module Haskell = struct
[ ({|"""|}, {|"""|})
]
(* Excludes ' as escapable string literal, since these can be used in
identifiers. *)
let escapable_string_literals = ordinary_string
let comments =
[ Multiline ("{-", "-}")
; Until_newline "--"