You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
395 B

4 years ago
  1. var CDO = require('../../tokenizer').TYPE.CDO;
  2. module.exports = {
  3. name: 'CDO',
  4. structure: [],
  5. parse: function() {
  6. var start = this.scanner.tokenStart;
  7. this.eat(CDO); // <!--
  8. return {
  9. type: 'CDO',
  10. loc: this.getLocation(start, this.scanner.tokenStart)
  11. };
  12. },
  13. generate: function() {
  14. this.chunk('<!--');
  15. }
  16. };