Portability | portable |
---|---|
Stability | experimental |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | Safe-Inferred |
Highlighting isn't strictly a parsing concern, but it makes more sense to annotate a parser with highlighting information than to require someone to completely reimplement all of the combinators to add this functionality later when they need it.
- data Highlight
- = EscapeCode
- | Number
- | Comment
- | CharLiteral
- | StringLiteral
- | Constant
- | Statement
- | Special
- | Symbol
- | Identifier
- | ReservedIdentifier
- | Operator
- | ReservedOperator
- | Constructor
- | ReservedConstructor
- | ConstructorOperator
- | ReservedConstructorOperator
- | BadInput
- | Unbound
- | Layout
- | MatchedSymbols
- | LiterateComment
- | LiterateSyntax
Documentation
Tags used by the TokenParsing
highlight
combinator.