UNPKG

docutils-ts

Version:

Port of the Python Docutils library to TypeScript

22 lines (21 loc) 1.19 kB
import RSTState from './rstState.js'; import { RegexpResult, ContextArray, StateInterface, ParseMethodReturnType, Patterns } from "../../../types.js"; /** * Nested parse handler for quoted (unindented) literal blocks. * * Special-purpose. Not for inclusion in `state_classes`. */ declare class QuotedLiteralBlock extends RSTState { private initial_lineno?; protected initialTransitions?: (string | string[])[]; patterns: Patterns; blank(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType; eof(context: ContextArray): ContextArray; indent(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType; /** Match arbitrary quote character on the first line only. */ initial_quoted(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType; /** Match consistent quotes on subsequent lines. */ quoted(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType; text(match: RegexpResult, context: ContextArray, nextState: StateInterface): ParseMethodReturnType; } export default QuotedLiteralBlock;