I’m currently facing an issue in KiCad’s Design Rule Editor and would really appreciate your help.
After completing my PCB design, I ran the DRC check. I had added a custom rule earlier that included a severity line (e.g., severity error). After running the check, I removed just the severity line from the rule, thinking it was optional.
However, after that, the DRC editor started throwing syntax errors such as:
Unrecognized item 'rule'. Expected constraint, condition, or disallow.
Not without seeing all the rules. Just post the full ruleset as a block quote.
But it looks like more missing brackets. Go and check immediately before the first error and see if there’s a bracket missing or a quotation mark incorrect / missing.
You seem to have multiple mismatched brackets as JamesJ already mentioned. It looks like you missed the final closing brackets on at least 5 different rules.
I recommend you cut all the rules, and then paste them into a text editor.
Then start over with an empty set of rules (did you start with a “version” statement?) and then you can put the rules back one by one, or in small groups, and run ERC each time to see whether the last added rule has a problem.