/*\ title: $:/core/modules/parsers/wikiparser/rules/inline/comment.js type: application/javascript module-type: wiki-inline-rule Wiki text inline rule for HTML comments. For example: {{{ }}} \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; exports.name = "comment"; exports.init = function(parser) { this.parser = parser; // Regexp to match - HTML comment regexp by Stephen Ostermiller, http://ostermiller.org/findhtmlcomment.html this.matchRegExp = /\/mg; }; exports.parse = function(match,isBlock) { // Move past the match this.parser.pos = this.matchRegExp.lastIndex; // Don't return any elements return []; }; })();