Commit 1743b50 1 parent 637038b commit 1743b50 Copy full SHA for 1743b50
File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,12 @@ using namespace argon::lang::parser2::node;
21
21
#define TKCUR_END this ->tkcur_.loc.end
22
22
23
23
bool Parser::CheckIDExt () const {
24
- return this ->Match (scanner::TokenType::IDENTIFIER,
25
- scanner::TokenType::KW_DEFAULT,
26
- scanner::TokenType::SELF,
27
- scanner::TokenType::BLANK);
24
+ return this ->Match (
25
+ scanner::TokenType::BLANK,
26
+ scanner::TokenType::IDENTIFIER,
27
+ scanner::TokenType::KW_DEFAULT,
28
+ scanner::TokenType::KW_PANIC,
29
+ scanner::TokenType::SELF);
28
30
}
29
31
30
32
int Parser::PeekPrecedence (TokenType type) {
@@ -915,8 +917,8 @@ Node *Parser::ParseOOBCall(Context *context) {
915
917
this ->Eat (true );
916
918
917
919
auto *expr = this ->ParseExpression (context, Parser::PeekPrecedence (TokenType::COMMA));
918
- if (expr == nullptr )
919
- throw ParserException (this ->tkcur_ .loc ,kStandardError [0 ]);
920
+ if (expr == nullptr )
921
+ throw ParserException (this ->tkcur_ .loc , kStandardError [0 ]);
920
922
921
923
if (expr->node_type != NodeType::CALL) {
922
924
Release (expr);
You can’t perform that action at this time.
0 commit comments