| 1414 | } |
| 1415 | |
| 1416 | function comment(snippet) { |
| 1417 | if (comments_off || src || (xmode && xmode !== 'script' && |
| 1418 | xmode !== 'style' && xmode !== 'styleproperty')) { |
| 1419 | warn_at('unexpected_comment', line, character); |
| 1420 | } else if (xmode === 'script' && /<\//i.test(source_row)) { |
| 1421 | warn_at('unexpected_a', line, character, '<\/'); |
| 1422 | } else if (option.safe && ax.test(snippet)) { |
| 1423 | warn_at('dangerous_comment', line, character); |
| 1424 | } else if (!option.todo && tox.test(snippet)) { |
| 1425 | warn_at('todo_comment', line, character); |
| 1426 | } |
| 1427 | } |
| 1428 | |
| 1429 | function regexp() { |
| 1430 | var b, |