func textState(l *lexer.Lexer) lexer.StateFunc { l.NextUpTo(func(r rune) bool { return variable(r) || assignment(r) || comma(r) || whitespace(r) }) l.Emit(TokenText) return initialState }
func variableState(l *lexer.Lexer) lexer.StateFunc { l.Ignore() l.NextUpTo(nonAlphanumeric) l.Emit(TokenVariable) return initialState }