diff options
author | puffnfresh <none@none> | 2010-11-16 20:05:51 -0800 |
---|---|---|
committer | puffnfresh <none@none> | 2010-11-16 20:05:51 -0800 |
commit | 776fde26f5f6fc68082513c22d392038379773a8 (patch) | |
tree | ba5dfc1e3f6de1169069cae181493822dbe9a74a /src/parseTools.js | |
parent | 37e5988aae61bfb0806003bb98a6830518fd42b8 (diff) |
handle identifiers with quotes and ignore |hidden| +test
Diffstat (limited to 'src/parseTools.js')
-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 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) { |