SpanParserDefinition

laika.api.bundle.SpanParserDefinition
class SpanParserDefinition(val startChars: Type[Char], val parser: Parser[Span], val isRecursive: Boolean, val precedence: Precedence) extends ParserDefinition[Span]

Defines a parser for a single kind of span element, like a literal text span or a link reference for example.

Value parameters

isRecursive

indicates whether this parser produces child elements by recursively applying the parsers for the host language

parser

the parser for the span element

precedence

indicates whether the parser should be applied before the base parsers of the host language (high precedence) or after them

startChars

all start characters that can start this span (allows performance optimizations)

Attributes

Source
ParserDefinition.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete fields

val isRecursive: Boolean

Indicates whether this parser produces child elements by recursively applying the parsers for the host language.

Indicates whether this parser produces child elements by recursively applying the parsers for the host language.

Attributes

Source
ParserDefinition.scala

The parser for the block or span element.

The parser for the block or span element.

Attributes

Source
ParserDefinition.scala

Indicates whether the parser should be applied before the base parsers of the host language (high precedence) or after them.

Indicates whether the parser should be applied before the base parsers of the host language (high precedence) or after them.

Attributes

Source
ParserDefinition.scala
val startChars: Type[Char]

Attributes

Source
ParserDefinition.scala