namespacing the store functions. allowing _ in params

This commit is contained in:
Dustin Swan 2026-02-05 22:55:24 -07:00
parent 1af838126e
commit 9b8916eb72
No known key found for this signature in database
GPG key ID: 30D46587E2100467
6 changed files with 50 additions and 59 deletions

View file

@ -279,9 +279,13 @@ export class Parser {
const token = this.current();
const params: string[] = [];
while (this.current().kind === 'ident') {
while (this.current().kind === 'ident' || this.current().kind === 'underscore') {
const param = this.advance();
params.push((param as { value: string }).value);
if (param.kind === 'underscore') {
params.push('_');
} else {
params.push((param as { value: string }).value);
}
}
this.expect('backslash');