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':
l.emit(symbolToken)
return lexWhitespace, nil
case '(':
l.emit(symbolToken)
return lexOpenParen, nil
case ')':
l.emit(symbolToken)
return lexCloseParen, nil
case '.':
l.keep()
return lexFloat, nil

Loading…
Cancel
Save