microsoft / VSLua

Visual Studio Tools for Lua
Other
191 stars 42 forks source link

Unexpected token in expression list. Can't parse negative integers. #23

Open hawkerm opened 8 years ago

hawkerm commented 8 years ago

num_players = -1

gives an error, but is a valid expression.

hawkerm commented 8 years ago

Seems related to not parsing negative integers correctly.

score_func = function(player_color, cards) return -7 end

gives Unexpected token in expression list. error

adambiser commented 7 years ago

Also happens with hexadecimal numbers.

x = bit32.band(0xffff, 0xf)