diff --git a/__dump.cpp b/__dump.cpp index 45b5862..7ef143f 100644 --- a/__dump.cpp +++ b/__dump.cpp @@ -29,10 +29,19 @@ namespace jet { for (auto i = parent->keywords.begin(); i != parent->keywords.end(); i++) outFile << i->first << "=[" << i->second << "]" << std::endl; - outFile << "*** COOKIES ***" << std::endl; + outFile << "*** COOKIES ***" << std::endl; for (auto i = global.cookies.data.begin(); i != global.cookies.data.end(); i++) outFile << i->first << "=[" << i->second << "]" << std::endl; + // Unlike variables (which have real global/local/parent scoping), + // custom definitions have only one level - __tag.cpp + // always registers into global.tags regardless of where in the + // script the definition sits, so there's nothing to break out by + // scope here. + outFile << "*** DEFINED TAGS ***" << std::endl; + for (auto i = global.tags.begin(); i != global.tags.end(); i++) + outFile << i->first << std::endl; + outFile.close(); }