aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorpuffnfresh <none@none>2010-11-16 20:05:51 -0800
committerpuffnfresh <none@none>2010-11-16 20:05:51 -0800
commit776fde26f5f6fc68082513c22d392038379773a8 (patch)
treeba5dfc1e3f6de1169069cae181493822dbe9a74a /src/parseTools.js
parent37e5988aae61bfb0806003bb98a6830518fd42b8 (diff)
handle identifiers with quotes and ignore |hidden| +test
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 542f97dd..1901b3fc 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, '_');
}
function isStructPointerType(type) {