cspell-grammar
Version:
Grammar parsing support for cspell
6 lines • 471 B
TypeScript
import type { NGrammar, Rule } from './grammarNormalized.js';
import type { DocumentLine, TokenizedLine, TokenizedLineResult } from './types.js';
export declare function tokenizeLine(line: DocumentLine, rule: Rule): TokenizedLineResult;
export declare function tokenizeText(text: string, grammar: NGrammar): TokenizedLine[];
export declare function tokenizeTextIterable(text: string, grammar: NGrammar): Iterable<TokenizedLine>;
//# sourceMappingURL=tokenizeLine.d.ts.map