lib/import/shake_grammar/lexer.rb in tracksperanto-2.2.2 vs lib/import/shake_grammar/lexer.rb in tracksperanto-2.2.4
- old
+ new
@@ -76,13 +76,13 @@
else
@buf << c
end
end
- INT_ATOM = /^(\d+)$/
+ INT_ATOM = /^(-?\d+)$/
FLOAT_ATOM = /^([\-\d\.]+)$/
STR_ATOM = /^\"/
- AT_FRAME = /^@(\d+)/
+ AT_FRAME = /^@(-?\d+)/
# Grab the minimum atomic value
def consume_atom!
at, @buf = @buf.strip, ''
return if at.empty?
\ No newline at end of file