mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-13 12:07:08 +00:00
Fixed: Reset all the macros when compiling a new file in the default implementation of the macro store.
This commit is contained in:
1 parent
392aafb360
commit
b3e6eb74b2
1 file changed
+2
-1
@@ -135,7 +135,7 @@ if (typeof exports != "undefined" && !exports.acorn) {
|
||||
sourceFile = options.sourceFile || null;
|
||||
}
|
||||
|
||||
var macros = Object.create(null);
|
||||
var macros;
|
||||
var macrosIsPredicate;
|
||||
|
||||
function defaultAddMacro(macro) {
|
||||
@@ -607,6 +607,7 @@ if (typeof exports != "undefined" && !exports.acorn) {
|
||||
// Reset the token state. Used at the start of a parse.
|
||||
|
||||
function initTokenState() {
|
||||
macros = Object.create(null);
|
||||
tokCurLine = 1;
|
||||
tokPos = tokLineStart = 0;
|
||||
tokRegexpAllowed = true;
|
||||
|
||||
Reference in new issue
Block a user