yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.Lexer.Latex
Synopsis
initState :: HlState
alexScanToken :: (AlexState HlState, AlexInput) -> Maybe (Tok Token, (AlexState HlState, AlexInput))
data Token
= Comment
| Text
| Special !Char
| Command !String
| Begin !String
| End !String
| NewCommand
type HlState = Int
tokenToText :: Token -> Maybe [Char]
Documentation
initState :: HlStateSource
alexScanToken :: (AlexState HlState, AlexInput) -> Maybe (Tok Token, (AlexState HlState, AlexInput))Source
Scan one token. Return (maybe) a token and a new state.
data Token Source
Constructors
Comment
Text
Special !Char
Command !String
Begin !String
End !String
NewCommand
show/hide Instances
type HlState = IntSource
tokenToText :: Token -> Maybe [Char]Source
Produced by Haddock version 2.6.1