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
393 B

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