mirror of
https://github.com/goauthentik/authentik.git
synced 2026-08-30 18:51:39 -07:00
* web: Fix stale clipboard tokens, untranslated labels. * Fix tooltip. * Fix type error. * Update types. * Fix types. Clean up composite. * Fix label names. * Fix broken HTML. * Fix labels, formatters. * Clean up properties, lifecyle.
24 lines
551 B
TypeScript
Vendored
24 lines
551 B
TypeScript
Vendored
export type Token = unknown;
|
|
|
|
export type LexerAction = (
|
|
this: Lexer,
|
|
match: string,
|
|
...captures: string[]
|
|
) => Token | Token[] | null | void;
|
|
|
|
export type DefunctHandler = (this: Lexer, chr: string) => Token | Token[] | null | void;
|
|
|
|
export class Lexer {
|
|
state: number;
|
|
index: number;
|
|
input: string;
|
|
reject: boolean;
|
|
|
|
constructor(defunct?: DefunctHandler);
|
|
addRule(pattern: RegExp, action: LexerAction, start?: number[]): this;
|
|
setInput(input: string): this;
|
|
lex(): Token | null;
|
|
}
|
|
|
|
export default Lexer;
|