docutils-ts
Version:
Port of the Python Docutils library to TypeScript
22 lines (21 loc) • 547 B
JavaScript
import Text from './text.js';
import { EOFError } from '../../../exceptions.js';
class SpecializedText extends Text {
blank(match, context, nextState) {
throw new EOFError();
}
underline(match, context, nextState) {
throw new EOFError();
}
indent(match, context, nextState) {
throw new EOFError();
}
text(match, context, nextState) {
throw new EOFError();
}
eof(...args) {
return [];
}
}
SpecializedText.stateName = 'SpecializedText';
export default SpecializedText;