refactor: improved line parser
- improved support for C-style comments; - add support for keys with square brackets; - slightly improved speed.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
# comment
|
||||
; comment again
|
||||
|
||||
// comment with indent
|
||||
DefKey1 = Some Value1
|
||||
DefKey2 = Some Value2 And Tabs! # With Comment
|
||||
DefKey3=NoSpaces!
|
||||
|
19
test/data/in_ini/test_get_key_slashes.sh.ini
Normal file
19
test/data/in_ini/test_get_key_slashes.sh.ini
Normal file
@ -0,0 +1,19 @@
|
||||
# comment
|
||||
; comment again
|
||||
|
||||
DefKey1 = Some Value1
|
||||
DefKey2 = Some Value2 And Tabs! # With Comment
|
||||
DefKey3=NoSpaces!
|
||||
|
||||
[Slashes/Test] // Comment For Section
|
||||
./Dir1/File = skip/skip // comment
|
||||
Key2 = 2
|
||||
|
||||
[MultipleKeySection] // C style comment
|
||||
Key = 1
|
||||
Key = 2
|
||||
Key = 3
|
||||
|
||||
[SectionWithIndent]
|
||||
Key=Value
|
||||
[SectionWithoutNewLineBefore]
|
Reference in New Issue
Block a user