parsec icon indicating copy to clipboard operation
parsec copied to clipboard

tokenise comments

Open ciez opened this issue 3 years ago • 0 comments

Currently comments are treated as whiteSpace. This leaves {-# LANGUAGE #-} and other Haskell pragmas out of parsed AST.

This proposal is to parse comments as a distinct token

whiteSpace could return [String] where each string is a separate comment line

ciez avatar May 01 '21 08:05 ciez