Skip to content

Commit

Permalink
hotfix: parsing variable kind
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed Oct 27, 2023
1 parent 62a9138 commit 723a9d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/parser/src/lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,13 @@ export class Lexer {
}
break;
}
case TokenType.COMMA: {
if (this.currentContext === tc_kind) {
this.state.popContext();
}

break;
}
case TokenType.SEMICOLON: {
if (this.currentContext === tc_kind) {
this.state.popContext();
Expand Down
3 changes: 2 additions & 1 deletion packages/parser/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ class _Parser extends Lexer {
if (
kindType === 'string' ||
kindType === 'number' ||
kindType === 'boolean'
kindType === 'boolean' ||
kindType === 'any'
) {
return t.primitiveKind({
primitive: kindType,
Expand Down

1 comment on commit 723a9d3

@vercel
Copy link

@vercel vercel bot commented on 723a9d3 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

reka – ./

reka-prevwong.vercel.app
reka.js.org
reka-git-main-prevwong.vercel.app
rekajs.vercel.app

Please sign in to comment.