import { AndRule, LiteralRule, OrRule, RepetitionRule, } from '@os-team/lexical-rules'; import CharRule from './CharRule.js'; import AuxiliaryRule from './AuxiliaryRule.js'; /** * The comment. * See https://www.w3.org/TR/xml/#NT-Comment */ class CommentRule extends AuxiliaryRule { public constructor() { super(); const prefixRule = new LiteralRule(''); // '-->' this.rule = new AndRule([prefixRule, anyCommentCharRule, suffixRule]); // '' } } export default CommentRule;