This patch was previously sent directly to Tim Hockin
The old config file parser only allowed ONE rule to be
defined in each file. This was not documented, and even
the debugging didn't help figure out what was going on.
Only reading the code confirmed the behaviour appeared
to be by design. Tim confirmed that it was only because
the parser was written very quickly.
This patch allow each config file to define multiple
rules. It works like a charm, and does smart things
when a config file is borked (missing or out-of-order
directives). The debugging (>=3) reports each rule as
it is enlisted, the number of rules in each file, and a
total after all files are processed.
This brings the config file parsing into line with what
I (and probably most people) would have expected.
If you like this, please apply to your tree, or else
give me some feedback and I'll try to tweak it.
Log in to post a comment.