summaryrefslogtreecommitdiff
path: root/src/intertyper.js
diff options
context:
space:
mode:
authorjulien.hamaide <julien.hamaide@fishingcactus.com>2012-01-25 15:56:27 +0100
committerjulien.hamaide <julien.hamaide@fishingcactus.com>2012-01-25 15:56:27 +0100
commit0040353a176fac6eff5091556afe87c1955e51c3 (patch)
treeb9b2510d4616df4ce7578067ef80e7c739e6131e /src/intertyper.js
parent61e4b6b9d40c966ead0198e9a9a32d1067273ef7 (diff)
String constants are store in a table to limit variable count
Diffstat (limited to 'src/intertyper.js')
-rw-r--r--src/intertyper.js4
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 {