fix(cli): add reserved type declarations and schema

- Use `globalThis` for `reserved` function export
- Add `reserved` field and function to DSL declarations
- Add `reserved` rule to grammar schema

(cherry picked from commit 07b4c8d05d)
This commit is contained in:
Pieter Goetschalckx 2025-08-02 11:01:41 +02:00 committed by Christian Clason
parent e7f4dfcd4a
commit 05bfeb5b69
3 changed files with 38 additions and 1 deletions

View file

@ -529,7 +529,7 @@ globalThis.optional = optional;
globalThis.prec = prec;
globalThis.repeat = repeat;
globalThis.repeat1 = repeat1;
global.reserved = reserved;
globalThis.reserved = reserved;
globalThis.seq = seq;
globalThis.sym = sym;
globalThis.token = token;