|
|
|
@ -220,7 +220,8 @@ mess.Parser = function Parser(env) {
|
|
|
|
|
chunks = (function(chunks) {
|
|
|
|
|
var j = 0,
|
|
|
|
|
skip = /[^"'`\{\}\/]+/g,
|
|
|
|
|
comment = /\/\*(?:[^*]|\*+[^\/*])*(?:\*+\/\n?|\**$)|\/\/.*/g,
|
|
|
|
|
// comment = /\/\*(?:[^*]|\*+[^\/*])*(?:\*+\/\n?|\**$)|\/\/.*/g,
|
|
|
|
|
comment = /\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,
|
|
|
|
|
level = 0,
|
|
|
|
|
match,
|
|
|
|
|
chunk = chunks[0],
|
|
|
|
@ -293,6 +294,10 @@ mess.Parser = function Parser(env) {
|
|
|
|
|
|
|
|
|
|
// return function(options, variables) {
|
|
|
|
|
return function(env) {
|
|
|
|
|
env.error = function(e) {
|
|
|
|
|
if (!env.errors) env.errors = [];
|
|
|
|
|
env.errors.push(e);
|
|
|
|
|
};
|
|
|
|
|
env.errors = [];
|
|
|
|
|
env.frames = env.frames || [];
|
|
|
|
|
|
|
|
|
@ -446,7 +451,8 @@ mess.Parser = function Parser(env) {
|
|
|
|
|
|
|
|
|
|
if (input.charAt(i + 1) === '/') {
|
|
|
|
|
return new tree.Comment($(/^\/\/.*/), true);
|
|
|
|
|
} else if (comment = $(/^\/\*(?:[^*]|\*+[^\/*])*(?:\*+\/\n?|\**$)/)) {
|
|
|
|
|
} else if (comment = $(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/)) {
|
|
|
|
|
// } else if (comment = $(/^\/\*(?:[^*]|\*+[^\/*])*(?:\*+\/\n?|\**$)/)) {
|
|
|
|
|
return new tree.Comment(comment);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|