Skip to content

Python syntax checker gives Unbalanced brackets on nested parens #132

@snoopyjc

Description

@snoopyjc

Nested parens are required to allow permutations of words in a trigger. Regular expressions handle them just fine, however the parser.check_syntax() method in the Python version (not in JS) is checking for nested parens (and other things) and generating a bogus "Unbalanced brackets" message (which is misleading). I recommend either removing this check entirely, or just removing parens from the list (and from the total).

Sample valid trigger: ((cat|dog) [*] animal|animal [*] (cat|dog))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions