UNPKG

htmljs-parser

Version:

An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values

11 lines (10 loc) 391 B
import { type StateDefinition, type Meta } from "../internal"; export interface ExpressionMeta extends Meta { groupStack: number[]; operators: boolean; wasComment: boolean; terminatedByEOL: boolean; terminatedByWhitespace: boolean; shouldTerminate(code: number, data: string, pos: number): boolean; } export declare const EXPRESSION: StateDefinition<ExpressionMeta>;