diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-26 18:51:13 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-27 10:19:09 -0700 |
commit | f6eb863d92b642e254dd86e63f8d6e8434f49276 (patch) | |
tree | e5c8cf5f6e945c138dc0e4efdc9a5ff5ea89a2e6 /src | |
parent | a242ce089084dcfc2557175266a43fc882db2bc4 (diff) |
improve processMathOp quoting
Diffstat (limited to 'src')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index a5aa7b17..e3901954 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -2108,7 +2108,7 @@ function processMathop(item) { if (item.params[i]) { paramTypes[i] = item.params[i].type || type; idents[i] = finalizeLLVMParameter(item.params[i]); - if (!isNumber(idents[i]) && !isNiceIdent(idents[i])) { + if (needsQuoting(idents[i])) { idents[i] = '(' + idents[i] + ')'; // we may have nested expressions. So enforce the order of operations we want } } else { |