Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Info(val tokenType: IElementType, val position: Int, val length: Int = 0, var canOpen: Boolean, var canClose: Boolean, var marker: Char, var closerIndex: Int = -1)

Functions

Link copied to clipboard
open fun canOpenClose(tokens: TokensCache, left: TokensCache.Iterator, right: TokensCache.Iterator, canSplitText: Boolean): <Error class: unknown class><Boolean, Boolean>

Checks if current token can open or close emphasis based on the current delimiter run.

Link copied to clipboard
open fun isPunctuation(info: TokensCache.Iterator, lookup: Int): Boolean
Link copied to clipboard
open fun isWhitespace(info: TokensCache.Iterator, lookup: Int): Boolean
Link copied to clipboard

Receives a list of delimiters collected by scan (contains tokens from all parsers) and creates actual tree nodes from them.

Link copied to clipboard
abstract fun scan(tokens: TokensCache, iterator: TokensCache.Iterator, delimiters: MutableList<DelimiterParser.Info>): Int

Finds all tokens that open or close element represented by this parser. Invoked by EmphasisLikeParser.collectDelimiters.