richardhundt / shine

A Shiny Lua Dialect
Other
231 stars 18 forks source link

Fixed crash when parsing hex escape sequences #46

Closed mpeterv closed 10 years ago

mpeterv commented 10 years ago

Fixed a typo which resulted in a crash when parsing hexadecimal escape sequences.

Before:

$ shine
Shine 0.0.2 -- Copyright (C) 2013-2014 Richard Hundt.
shine> print("\x3a")
bad argument #1 to '?' (number expected, got nil)

After:

$ shine
Shine 0.0.2 -- Copyright (C) 2013-2014 Richard Hundt.
shine> print("\x3a")
:
richardhundt commented 10 years ago

Thanks!