htmljs-parser
Version:
An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values
15 lines (14 loc) • 527 B
TypeScript
import { type StateDefinition, type Meta } from "../internal";
export interface ExpressionMeta extends Meta {
groupStack: number[];
operators: boolean;
wasComment: boolean;
inType: boolean;
forceType: boolean;
ternaryDepth: number;
terminatedByEOL: boolean;
terminatedByWhitespace: boolean;
consumeIndentedContent: boolean;
shouldTerminate(code: number, data: string, pos: number, expression: ExpressionMeta): boolean;
}
export declare const EXPRESSION: StateDefinition<ExpressionMeta>;