'Quasiquotes escaping

I would like to add my new language to Haskell using the Quasiquotes, but the language itself uses |] as a keyword.

Is there some way, how to:

a) Escape |], so it is passed to my language

b) Let the parser of my language decide, when the quasiquotation ends itself

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source