UNPKG

cspell-grammar

Version:
6 lines 471 B
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