DelimiterParser

abstract class DelimiterParser

Types

Companion
Link copied to clipboard
common
object Companion
Info
Link copied to clipboard
common
data class Info(tokenType: IElementType, position: Int, length: Int, canOpen: Boolean, canClose: Boolean, marker: Char, closerIndex: Int)

Functions

canOpenClose
Link copied to clipboard
common
open fun canOpenClose(tokens: TokensCache, left: TokensCache.Iterator, right: TokensCache.Iterator, canSplitText: Boolean): <ERROR CLASS><Boolean, Boolean>
Checks if current token can open or close emphasis based on the current delimiter run.
isLeftFlankingRun
Link copied to clipboard
common
open fun isLeftFlankingRun(leftIt: TokensCache.Iterator, rightIt: TokensCache.Iterator): Boolean
isPunctuation
Link copied to clipboard
common
open fun isPunctuation(info: TokensCache.Iterator, lookup: Int): Boolean
isRightFlankingRun
Link copied to clipboard
common
open fun isRightFlankingRun(tokens: TokensCache, leftIt: TokensCache.Iterator, rightIt: TokensCache.Iterator): Boolean
isWhitespace
Link copied to clipboard
common
open fun isWhitespace(info: TokensCache.Iterator, lookup: Int): Boolean
process
Link copied to clipboard
common
abstract fun process(tokens: TokensCache, iterator: TokensCache.Iterator, delimiters: MutableList<DelimiterParser.Info>, result: SequentialParser.ParsingResultBuilder)
Receives a list of delimiters collected by scan (contains tokens from all parsers) and creates actual tree nodes from them.
scan
Link copied to clipboard
common
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.

Inheritors

StrikeThroughDelimiterParser
Link copied to clipboard
EmphStrongDelimiterParser
Link copied to clipboard