Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
mkRegMultilineComment :: String -> String -> Reg Source #
Create regex for multiline comments.
>>>
debugPrint $ mkRegMultilineComment "<" ">"
'<'(char-'>')*'>'
>>>
debugPrint $ mkRegMultilineComment "/*" "*/"
{"/*"}(char-'*')*'*'((char-["*/"])(char-'*')*'*'|'*')*'/'
>>>
debugPrint $ mkRegMultilineComment "<!--" "-->"
{"<!--"}(char-'-')*'-'((char-'-')+'-')*'-'((char-["->"])(char-'-')*'-'((char-'-')+'-')*'-'|'-')*'>'
debugPrint :: Reg -> IO () Source #