We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f50ce46 commit fcfa362Copy full SHA for fcfa362
1 file changed
src/compiler/parser/parser.c
@@ -735,7 +735,11 @@ static Stmt *statement(Parser *p) {
735
}
736
737
// UI Declarations
738
- if (check(p, TOKEN_UI_APP) || check(p, TOKEN_UI_WINDOW)) {
+ 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)) {
743
if (!p->uiEnabled) {
744
parserError(p, "UI components require 'use UI' to be imported.");
745
0 commit comments