yi-0.6.5.0: The Haskell-Scriptable Editor

Safe HaskellSafe-Infered

Yi.Syntax.Layout

Synopsis

Documentation

layoutHandler :: forall t lexState. (Show t, Eq t) => (t -> Bool) -> [(t, t)] -> (Tok t -> Bool) -> (t, t, t) -> (Tok t -> Bool) -> Scanner (AlexState lexState) (Tok t) -> Scanner (State t lexState) (Tok t)Source

Transform a scanner into a scanner that also adds opening, closing and next tokens to indicate layout.

type State t lexState = (IState t, AlexState lexState)Source