aboutsummaryrefslogtreecommitdiff
path: root/src/intertyper.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-28 14:59:04 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-28 14:59:04 -0700
commit0b222be053ad17a677938c3156c47842b7389a6d (patch)
treecbab9605bf8116c26b2b39baf9506a5bc429a894 /src/intertyper.js
parent0be34770addebcc0e7b21bf4fca7694cc5e00592 (diff)
fix string detection regexp and add test
Diffstat (limited to 'src/intertyper.js')
-rw-r--r--src/intertyper.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index d9db10f9..6b91f527 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -74,7 +74,7 @@ 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);
+ var testString = /[@%\w\d\.\" $-]+ = [\w ]+ \[\d+ x i8] c".*/.exec(line);
Variables.globals[globalIdent] = {
name: globalIdent,
alias: !!testAlias,