We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f5297 commit 329b2d1Copy full SHA for 329b2d1
src/lexer.coffee
@@ -211,9 +211,8 @@ exports.Lexer = class Lexer
211
when 'o' then 8
212
when 'x' then 16
213
else null
214
+
215
numberValue = if base? then parseInt(number[2..], base) else parseFloat(number)
- if number.charAt(1) in ['b', 'o']
216
- number = "0x#{numberValue.toString 16}"
217
218
tag = if numberValue is Infinity then 'INFINITY' else 'NUMBER'
219
@token tag, number, 0, lexedLength
0 commit comments