Commit Graph
25 Commits
Author SHA1 Message Date
Unknwon af26abd521 parser: support SkipUnrecognizableLines (#150) 2018-07-11 21:03:03 +08:00
Unknwon fa6ee696e4 ini: change minimum Go requirement to 1.6 2018-07-11 20:55:23 +08:00
Anton Antonovand无闻 7af1ffd45d parser: support ignore inline comment (#146)
Edge case has a value that contains an inline symbol such as `;` or `#`.

Currently parsing a value such as:

```
value = val#ue
```

would result into just `val` if `IgnoreInlineComment` is false.

If `IgnoreInlineComment` is true it would result into the full value, but it's incorrect to depend on this.

With the fix value would be parsed as `val#ue`.
2018-05-27 06:39:42 +08:00
Anton Antonovand无闻 ecf73439ed ini: support Python multi-line values (#145)
* [GH-144] Support Python multi-line values
2018-04-20 10:53:26 -04:00
Unknwon 32e4c1e6bc key: support nested values (#131)
Docs: http://docs.aws.amazon.com/cli/latest/topic/config-vars.html#nested-values
2017-11-19 00:34:21 -05:00
Unknwon a343d9870e ini: add load option UnescapeValueCommentSymbols (#129) 2017-11-13 19:34:40 -05:00
Unknwon f280b3ba51 {file, parser}: enforce default section name to lowercase with insentive load (#125) 2017-10-26 14:46:43 -04:00
Unknwon 7a6f455dde file: add load option UnescapeValueDoubleQuotes
Closes #110
2017-10-14 04:16:35 -04:00
Unknwon 79f45f0fe8 parser: remove surrounding quotes for empty value (#97) 2017-05-18 04:42:24 -04:00
Unknwon 1730955e31 parser: add LoadOptions.IgnoreInlineComment (#93) 2017-03-15 17:01:39 -04:00
Unknwon 6a67acc2cd key: add shadow keys 2017-02-21 22:36:12 -05:00
Unknwon e3c2d47c61 Add (*Section).NewBooleanKey method
Fixes #87
2017-01-23 04:11:46 -05:00
Unknwon 7680b38f53 Add error check for PR #77 2017-01-22 06:44:57 -05:00
Guido Serraand无闻 2ba7300c05 boolean keys do not get sanitised from the \n (#77)
* unit test to isolate the problem

* the error is not related to the comment, but simply that the key does not get sanitized...

* this fixes the \n issue, but highlights an error in the Writer

* correcting as well the WriteTo function

* unnecessary comment

* rebase and fix of the import
2017-01-22 06:40:42 -05:00
Unknwon 9a250b46b0 Minor fix and docs for PR #72 2016-12-21 06:44:06 -05:00
George Vilchesand无闻 4b84ed0055 Added support for unparseable sections. (#72)
* Added support for unparseable sections.

* Add write support for unparseable sections.

* Slightly changed test files to make test results clearer with tools/platforms that handle whitespace differently.
2016-12-21 06:26:37 -05:00
Unknwon da14cebb76 Hanlde BOM for UTF-16 2016-12-21 05:59:58 -05:00
Unknwon a2610b3a79 #53 support boolean type key 2016-08-16 21:45:43 -07:00
Unknwon d84ec27dc1 #44 add load option to ignore continuation lines 2016-07-02 17:26:46 +08:00
Unknwon a219cd2c4f Go1.4 compatibility 2016-06-30 04:59:49 +08:00
Ian Campbelland无闻 9831c78f04 Match last ] in line when parsing Section header (#46)
I have a config.ini where section names can contain "]", which leads to parse
errors. While proper support for quoting would be best (issue #32) simply
matching the last "]" rather than the first helps in this case.
2016-06-30 04:45:38 +08:00
Unknwon 2cd302aa78 #36 support case insensitive load
- Use Travis CI
2016-06-29 20:27:58 +08:00
Unknwon a4e5487f4a fix panic when have empty values 2015-12-11 16:51:11 -05:00
Unknwon 9f4d2712cf fix #25 2015-12-07 23:17:02 -05:00
Unknwon 65f8c74913 refactor parser 2015-12-06 01:34:00 -05:00