aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-25 15:50:10 +0200
committerAlon Zakai <alonzakai@gmail.com>2012-05-25 15:50:10 +0200
commitdfe17491276ec8b660e31b45f6c628bc028fe93a (patch)
treec697dde624114bde9a4bfa2331dec463b77a8801 /src
parent937b9b570a83f394ba7de732321ede8584d9f72e (diff)
allow - in globals, aliases and types
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 354ec19c..d9db10f9 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,