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 DelimiterSyntax.
- Implemented types
Constructors
-
DelimiterRun({required Text node, required int char, required DelimiterSyntax syntax, required List<
DelimiterTag> tags, required bool canOpen, required bool canClose, required bool allowIntraWord, bool isActive = true})
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 → DelimiterSyntax
-
The syntax which uses this delimiter to parse a tag.
final
-
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
- unicodePunctuationPattern → RegExp
-
According to
CommonMark:
final
Static Methods
-
tryParse(
SimpleParser parser, int runStart, int runEnd, {required DelimiterSyntax syntax, required List< DelimiterTag> tags, required Text node, bool allowIntraWord = false}) → DelimiterRun? -
Tries to parse a delimiter run from
runStart
(inclusive) torunEnd
(exclusive).
Constants
- unicodeWhitespace → const String
- Unicode whitespace.