Skip to content

Commit

Permalink
condition_parser: handle SIGNAL type as an identifier
Browse files Browse the repository at this point in the history
For example, if we have the criteria `maximized is true`: the code
currently will fail to recognize it, because maximized is a signal name.
  • Loading branch information
ammen99 committed Dec 20, 2023
1 parent 15f8e16 commit 221cfcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wayfire/parser/condition_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void condition_parser_t::_factor(lexer_t &lexer)
{
_symbol = lexer.parse_symbol();

if (_symbol.type == symbol_t::type_t::IDENTIFIER)
if (_symbol.type == symbol_t::type_t::IDENTIFIER || _symbol.type == symbol_t::type_t::SIGNAL)
{
// Identifier.
auto identifier = get_string(_symbol.value);
Expand Down

0 comments on commit 221cfcf

Please sign in to comment.