magthe/hsini — pull request #7 by adimit (2012-03-19 19:51:33+00:00)
Title: Some syntax extensions.

Hello Magnus,

I've added some capabilities and corresponding test cases to the parser for hsini to make it accept a wider range of "valid" ini files. It now accepts the following:

* underscores and numbers in option line names
* underscores in section headings
* comments that start with `;` (and not only ones that start with `#`)

I know there's no one good source for "valid" ini files, and everybody makes up a spec as they go, but I found a lot of ini files in the wild that couldn't be parsed without these extensions, so I decided to add them.

If this needs more work, please let me know.

Best,
Aleks