aboutsummaryrefslogtreecommitdiff
path: root/ListParser.pm
Commit message (Collapse)AuthorAge
* Improve config error contextDavid Phillips2018-09-23
|
* ListParser: Give crude context on dict/map errorDavid Phillips2018-09-23
|
* ListParser: die on duplicate keys in hashDavid Phillips2018-09-23
|
* Overhaul config parsingDavid Phillips2018-09-17
* makes plugin config more private: The config file now uses sections denoted with [Plugin::Foo] where plugin- private config can be stored. Plugins are now passed the usual, as well as a hashref for their own config section. They are also passed the config section of the core, i.e. those config options not appearing in an explicit section. Generally, these are used for bot-global options, so should be accessible to all plugins, but plugin-specific config shall be hidden * tries to improve parsing of hash-like strings and arrays The previous mechanism of using regex to pull out possible tokens was only ever meant to be temporary, and caused problems with escaping or encapsulation inside strings. I have made steps on hash parsing to allow tokens inside strings. Both array and hash parsing still to provide an escape character to escape the item separator (,)