-
Notifications
You must be signed in to change notification settings - Fork 0
/
hoover.d.ts
34 lines (34 loc) · 933 Bytes
/
hoover.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { Plugin, Config, Lex, Point, Token, AltAction } from 'jsonic';
type HooverOptions = {
block: {
[name: string]: {
start?: {
fixed?: string | string[];
consume?: null | boolean | string[];
};
end?: {
fixed?: string | string[];
consume?: null | boolean | string[];
};
escapeChar?: string;
escape?: {
[char: string]: string;
};
allowUnknownEscape: boolean;
preserveEscapeChar: boolean;
trim: boolean;
};
};
lex?: {
order?: number;
};
action?: AltAction;
};
declare const Hoover: Plugin;
declare function parseToEnd(lex: Lex, hvpnt: Point, block: any, cfg: Config): {
done: boolean;
val: string;
bad?: Token;
};
export { parseToEnd, Hoover };
export type { HooverOptions };