CommentRecognizer

Recognizes a comment, at a line start or in the middle of a line the scan resumed inside. A comment may span lines and absorbs nothing after its closing delimiter, so its text is not line-aligned and its match carries an explicit end index.

Properties

Link copied to clipboard
open override val isLineAnchored: Boolean = false

Whether the recognizer only opens at the start of a line.

Functions

Link copied to clipboard
open override fun open(cursor: LineCursor): BlockMatch?