lib/sparkql/lexer.rb in sparkql-1.1.13 vs lib/sparkql/lexer.rb in sparkql-1.1.14
- old
+ new
@@ -45,9 +45,11 @@
literal :TIME, @current_token_value
when @current_token_value = scan(DECIMAL)
literal :DECIMAL, @current_token_value
when @current_token_value = scan(INTEGER)
literal :INTEGER, @current_token_value
+ when @current_token_value = scan(/\-/)
+ [:UMINUS, @current_token_value]
when @current_token_value = scan(CHARACTER)
literal :CHARACTER, @current_token_value
when @current_token_value = scan(BOOLEAN)
literal :BOOLEAN, @current_token_value
when @current_token_value = scan(KEYWORD)