namespacing the store functions. allowing _ in params
This commit is contained in:
parent
1af838126e
commit
9b8916eb72
6 changed files with 50 additions and 59 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue