Skip to content

Commit fcfa362

Browse files
committed
UI: Expand parser gate to cover all UI tokens
1 parent f50ce46 commit fcfa362

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/compiler/parser/parser.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,11 @@ static Stmt *statement(Parser *p) {
735735
}
736736

737737
// UI Declarations
738-
if (check(p, TOKEN_UI_APP) || check(p, TOKEN_UI_WINDOW)) {
738+
if (check(p, TOKEN_UI_APP) || check(p, TOKEN_UI_WINDOW) ||
739+
check(p, TOKEN_UI_STATE) || check(p, TOKEN_UI_ACTION) ||
740+
check(p, TOKEN_UI_CONTAINER) || check(p, TOKEN_UI_BUTTON) ||
741+
check(p, TOKEN_UI_TEXT) || check(p, TOKEN_UI_INPUT) ||
742+
check(p, TOKEN_UI_STYLE)) {
739743
if (!p->uiEnabled) {
740744
parserError(p, "UI components require 'use UI' to be imported.");
741745
}

0 commit comments

Comments
 (0)