diff options
author | julien.hamaide <julien.hamaide@fishingcactus.com> | 2012-01-25 15:56:27 +0100 |
---|---|---|
committer | julien.hamaide <julien.hamaide@fishingcactus.com> | 2012-01-25 15:56:27 +0100 |
commit | 0040353a176fac6eff5091556afe87c1955e51c3 (patch) | |
tree | b9b2510d4616df4ce7578067ef80e7c739e6131e /src/intertyper.js | |
parent | 61e4b6b9d40c966ead0198e9a9a32d1067273ef7 (diff) |
String constants are store in a table to limit variable count
Diffstat (limited to 'src/intertyper.js')
-rw-r--r-- | src/intertyper.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index d295a872..010b0d71 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -83,10 +83,12 @@ function intertyper(data, sidePass, baseLineNums) { var global = /([@%\w\d\.\" ]+) = .*/.exec(line); var globalIdent = toNiceIdent(global[1]); var testAlias = /[@%\w\d\.\" ]+ = alias .*/.exec(line); + var testString = /^[^"]+c\"[^"]+"/.exec( line ); Variables.globals[globalIdent] = { name: globalIdent, alias: !!testAlias, - impl: VAR_EMULATED + impl: VAR_EMULATED, + isString : !!testString }; unparsedGlobals.lines.push(line); } else { |