aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-25 17:45:50 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-25 17:45:50 -0700
commit24f2b64781720ada9821bfd6eb8deddd72242dcb (patch)
treedd410c76b9c4c1ecb42c53ae51ee9bad8d96d2c9 /src/parseTools.js
parent296cd5f54cb598fad7c9e58776bac906da1add02 (diff)
do not mangle hex float constants in function calls
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 3489964f..455cbe8b 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -479,7 +479,7 @@ function parseParamTokens(params) {
segment[0].text += segment[1].text;
segment.splice(1, 1); // TODO: merge tokens nicely
}
- var num = isNumber(segment[1].text);
+ var num = isNumber(segment[1].text) || (segment[1].text[0] === '0'); // handle 0x... as well
var ident = parseNumerical(segment[1].text, segment[0].text);
if (!num) ident = toNiceIdent(ident);
ret.push({