from ..abstract import AbstractSkipParser
from .lexers import DirectiveInPercentCommentLexer
from ..markdown.lexers import DirectiveInHTMLCommentLexer


class SkipParser(AbstractSkipParser):
    """
    A :any:`Parser` for :ref:`skip <myst-skip-parser>` instructions.
    """

    def __init__(self) -> None:
        super().__init__([
            DirectiveInPercentCommentLexer(self.directive),
            DirectiveInHTMLCommentLexer(self.directive),
        ])
