Current section

Files

Jump to
spellweaver priv bun node_modules cspell-grammar dist parser processors procMatchingRule.d.ts
Raw

priv/bun/node_modules/cspell-grammar/dist/parser/processors/procMatchingRule.d.ts

import type { MatchRuleResult, NCaptures, Rule } from '../grammarNormalized.js';
import type { MatchResult, TokenizedText } from '../types.js';
/**
* Apply the scopes to the line
* @param line - line of text
* @param matchRuleResult - the matching rule
*/
export declare function applyCaptureToBeginOrMatch(matchRuleResult: MatchRuleResult): TokenizedText[];
/**
* Apply the scopes to the line
* @param line - line of text
* @param rule - the matching rule
*/
export declare function applyCaptureToEnd(rule: Rule, match: MatchResult): TokenizedText[];
/**
* Apply the scopes to the line
* @param line - line of text
* @param rule - the matching rule
*/
export declare function applyCaptures(rule: Rule, match: MatchResult, captures: NCaptures | undefined): TokenizedText[];
//# sourceMappingURL=procMatchingRule.d.ts.map