justinmk / tree-sitter-ini

tree-sitter grammar/parser for INI files
Apache License 2.0
20 stars 10 forks source link

key with empty value not parsed correctly #9

Closed sayMuFaSa closed 3 weeks ago

sayMuFaSa commented 2 months ago

When the value of a key is empty, I mean if after equal sign there is nothing but line break, whatever goes next is not highlighted properly.

sayMuFaSa commented 2 months ago

Like here. Section 2 is not highlighted at all. 2024-07-27_00-18

justinmk commented 1 month ago

Based on https://stackoverflow.com/a/9491779/152142 it seems like a "null value" is allowed. So this is a bug.