diff --git a/lib/parser.js b/lib/parser.js index a3767fd32..7ba6dcdc8 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -12,12 +12,6 @@ var Lexer = require('./lexer') , nodes = require('./nodes'); -/** - * Tags that may not contain tags. - */ - -var textOnly = ['script', 'textarea', 'style']; - /** * Initialize `Parser` with the given input `str` and `filename`. * @@ -26,12 +20,18 @@ var textOnly = ['script', 'textarea', 'style']; * @api public */ -var Parser = module.exports = function Parser(str, filename){ +var Parser = exports = module.exports = function Parser(str, filename){ this.input = str; this.lexer = new Lexer(str); this.filename = filename; }; +/** + * Tags that may not contain tags. + */ + +var textOnly = exports.textOnly = ['script', 'textarea', 'style']; + /** * Parser prototype. */