mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-17 16:11:28 +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:
@@ -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