aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-07 21:21:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-07 21:21:07 -0700
commitd12dd0c3eb42f4053ae9e156b76f8aea197bce5e (patch)
tree83dbd8f94f88949249eca9e8a843860a5819f4e9 /src
parentae1cb6d7eca0bffcfae0f923dd2dd6d7ed8037ca (diff)
handle dollar in alias names
Diffstat (limited to 'src')
-rw-r--r--src/intertyper.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index c5a9583b..a1e1b0f2 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -69,11 +69,11 @@ function intertyper(data, sidePass, baseLineNums) {
if (mainPass && (line[0] == '%' || line[0] == '@')) {
// If this isn't a type, it's a global variable, make a note of the information now, we will need it later
- var testType = /[@%\w\d\.\" ]+ = type .*/.exec(line);
+ var testType = /[@%\w\d\.\" $]+ = type .*/.exec(line);
if (!testType) {
- var global = /([@%\w\d\.\" ]+) = .*/.exec(line);
+ var global = /([@%\w\d\.\" $]+) = .*/.exec(line);
var globalIdent = toNiceIdent(global[1]);
- var testAlias = /[@%\w\d\.\" ]+ = alias .*/.exec(line);
+ var testAlias = /[@%\w\d\.\" $]+ = alias .*/.exec(line);
var testString = /^[^"]+c\"[^"]+"/.exec(line);
Variables.globals[globalIdent] = {
name: globalIdent,