Open gregnis opened 2 months ago
You may ask whether it's legal, and I couldn't find any information on this. All I know is that I have them in my INI files, and that Windows GetPrivateProfileString() handles such key without problems.
This conflicts with https://github.com/justinmk/tree-sitter-ini/issues/13
Need a clear spec one way or the other. Else we're just fumbling around and will do unexpected things depending on the INI "flavor". A spec for each "flavor" would be a starting point.
'# Of Diffs'
implies quote-parsing. What does Windows GetPrivateProfileString() do with the following?
[Misc]
Show '# Of Diffs column message=1
Show # Of Diffs' column message=2
'# Of Diffs'
implies quote-parsing. What does Windows GetPrivateProfileString() do with the following?[Misc] Show '# Of Diffs column message=1 Show # Of Diffs' column message=2
It fails in both cases (uses the default value). Still, it does succeed and reads "1" for
[Misc]
Show '# Of Diffs' column message=1
and if you follow the recommendation of https://stackoverflow.com/a/19550081/152142 to use GetPrivateProfileString as a de facto reference, it would make sense to implement this.
Example:
Result: