Fixing parse of error type.

This commit is contained in:
Christoffer Lerno
2021-07-18 13:44:07 +02:00
parent 069dbe8238
commit e6b9efe850
2 changed files with 9 additions and 0 deletions

View File

@@ -1120,6 +1120,7 @@ ParseRule rules[TOKEN_EOF + 1] = {
[TOKEN_QUAD] = { parse_type_identifier, NULL, PREC_NONE },
[TOKEN_VOID] = { parse_type_identifier, NULL, PREC_NONE },
[TOKEN_TYPEID] = { parse_type_identifier, NULL, PREC_NONE },
[TOKEN_ERR] = { parse_type_identifier, NULL, PREC_NONE },
[TOKEN_ELSE] = { NULL, parse_else_expr, PREC_TRY_ELSE },
[TOKEN_QUESTION] = { NULL, parse_ternary_expr, PREC_TERNARY },

View File

@@ -0,0 +1,8 @@
module foo;
error Blurg;
func void main()
{
error foo;
}