From 4b7fda4f4346c026b4212478f6712b4163174b37 Mon Sep 17 00:00:00 2001 From: James Westman Date: Wed, 8 Jun 2022 22:54:24 -0500 Subject: [PATCH] action widgets: Fix grammar --- blueprintcompiler/language/response_id.py | 2 +- tests/samples/action_widgets.blp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blueprintcompiler/language/response_id.py b/blueprintcompiler/language/response_id.py index 6fe6e3c..7dce2f2 100644 --- a/blueprintcompiler/language/response_id.py +++ b/blueprintcompiler/language/response_id.py @@ -32,7 +32,7 @@ class ResponseId(AstNode): ] grammar = [ - UseIdent("response"), + Keyword("response"), "=", AnyOf( UseIdent("response_id"), diff --git a/tests/samples/action_widgets.blp b/tests/samples/action_widgets.blp index 09109bb..2d4d6ae 100644 --- a/tests/samples/action_widgets.blp +++ b/tests/samples/action_widgets.blp @@ -6,7 +6,7 @@ Dialog { label: _("Cancel"); } - [action reponse=9] + [action response=9] Button custom_response_button { label: _("Reinstall Windows"); }