DelimiterRun class

An implementation of Delimiter which uses concepts of "left-flanking" and "right-flanking" to determine the values of canOpen and canClose.

This is primarily used when parsing emphasis and strong emphasis, but can also be used by other extensions of TagSyntax.

Implemented types

Properties

allowIntraWord bool
final
canClose bool
Whether this delimiter can close emphasis or strong emphasis.
final
canOpen bool
Whether this delimiter can open emphasis or strong emphasis.
final
char int
The type of delimiter.
final
hashCode int
The hash code for this object.
no setterinherited
isActive bool
Whether the delimiter is active.
getter/setter pairoverride
length int
The number of delimiters.
no setteroverride
node Text
The Text node representing the plain text representing this delimiter.
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
syntax TagSyntax
The syntax which uses this delimiter to parse a tag.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

punctuation RegExp
According to CommonMark:
final
whitespace String
final

Static Methods

tryParse(SimpleParser parser, int runStart, int runEnd, {required TagSyntax syntax, required Text node, bool allowIntraWord = false}) DelimiterRun?
Tries to parse a delimiter run from runStart (inclusive) to runEnd (exclusive).