fix(dsl): add support for rule refs to externals

This commit is contained in:
Andrew Hlynskyi 2023-01-24 14:25:29 +02:00
parent e4d64457c3
commit ae738c3c0f

2
cli/npm/dsl.d.ts vendored
View file

@ -102,7 +102,7 @@ interface Grammar<
externals?: (
$: Record<string, SymbolRule<string>>,
previous: Rule[],
) => SymbolRule<string>[];
) => (SymbolRule<string> | RegExp | string)[];
/**
* An array of tokens that may appear anywhere in the language. This