diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/intertyper.js | 6 |
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, |