24
24
highlight input = evalState (mapM parseSourceLine $ lines input) startingState
26
26
parseSourceLine :: String -> State SyntaxState SourceLine
29
29
-- | Parse an expression using appropriate local context.
33
34
result <- parseRules (lang,cont)
35
36
updateState $ \st -> st{ synStPrevChar = '\n' }