fixed up lexing of -

master
Jordan Orelli 12 years ago
parent 93c86871da
commit 0cd35bd286

@ -126,6 +126,12 @@ func lexMinus(l *lexer) (stateFn, error) {
case ' ', '\t', '\n', '\r': case ' ', '\t', '\n', '\r':
l.emit(symbolToken) l.emit(symbolToken)
return lexWhitespace, nil return lexWhitespace, nil
case '(':
l.emit(symbolToken)
return lexOpenParen, nil
case ')':
l.emit(symbolToken)
return lexCloseParen, nil
case '.': case '.':
l.keep() l.keep()
return lexFloat, nil return lexFloat, nil

Loading…
Cancel
Save