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"); }