yi-0.6.2.3: The Haskell-Scriptable Editor
Source code
Contents
Index
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
::
HlState
Source
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
Instances
Eq
Token
Ord
Token
Show
Token
type
HlState
=
Int
Source
tokenToText
::
Token
->
Maybe
[
Char
]
Source
Produced by
Haddock
version 2.6.1