MCPcopy
hub / github.com/mishoo/UglifyJS-old / read_multiline_comment

Function read_multiline_comment

lib/parse-js.js:476–494  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474 };
475
476 function read_multiline_comment() {
477 next();
478 return with_eof_error("Unterminated multiline comment", function(){
479 var i = find("*/", true),
480 text = S.text.substring(S.pos, i);
481 S.pos = i + 2;
482 S.line += text.split("\n").length - 1;
483 S.newline_before = S.newline_before || text.indexOf("\n") >= 0;
484
485 // https://github.com/mishoo/UglifyJS/issues/#issue/100
486 if (/^@cc_on/i.test(text)) {
487 warn("WARNING: at line " + S.line);
488 warn("*** Found \"conditional comment\": " + text);
489 warn("*** UglifyJS DISCARDS ALL COMMENTS. This means your code might no longer work properly in Internet Explorer.");
490 }
491
492 return token("comment2", text, true);
493 });
494 };
495
496 function read_name() {
497 var backslash = false, name = "", ch, escaped = false, hex;

Callers 1

handle_slashFunction · 0.85

Calls 5

nextFunction · 0.85
with_eof_errorFunction · 0.85
findFunction · 0.85
tokenFunction · 0.85
warnFunction · 0.70

Tested by

no test coverage detected