aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-21 19:19:59 -0700
committeralon@honor <none@none>2010-10-21 19:19:59 -0700
commitbeb16b9d956b0434330d6ce1eefd67eec5bae111 (patch)
tree6485b3a55bc1a0e330a25efd06b82dcb9b806622 /src/parseTools.js
parentce5008630e06a2238b2dc6e5fcbbeebc0ce01cd2 (diff)
expose ___SIZE of structs
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 6e8f8b47..7e941ef5 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -56,7 +56,7 @@ function toNiceIdent(ident) {
assert(ident);
if (parseFloat(ident) == ident) return ident;
if (ident == 'null') return '0'; // see parseNumerical
- return ident.replace(/[" \.@%:<>,\*\[\]]/g, '_');
+ return ident.replace(/[" \.@%:<>,\*\[\]-]/g, '_');
}
INT_TYPES = searchable('i1', 'i8', 'i16', 'i32', 'i64');