Reverting part of f5287805b1 to eliminate catastrophic backtracking. Fixes #11.

This commit is contained in:
Tom MacWright 2011-05-10 17:22:17 -04:00
parent b6cc102089
commit ac0d834785

View File

@ -209,7 +209,7 @@ carto.Parser = function Parser(env) {
chunks = (function(chunks) {
var j = 0,
skip = /[^"'`\{\}\/]+/g,
comment = /\/\*(?:[^*]+|\*+[^\/*])*\*+\/|\/\/.*/g,
comment = /\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,
level = 0,
match,
chunk = chunks[0],