textmate / ini.tmbundle

TextMate support for Ini
15 stars 9 forks source link

Improve comment highlighting #7

Closed cdce8p closed 2 years ago

cdce8p commented 3 years ago

; should only indicate a comment if it's at the start of a line.

; This is a comment

; Here it's used as list separator
key = value1;value2;value3

Example from glib

[Another Group]
Numbers=2;20;-200;0
Booleans=true;false;true;true

https://developer.gnome.org/glib/stable/glib-Key-value-file-parser.html#glib-Key-value-file-parser.description

Additional links https://en.wikipedia.org/wiki/INI_file#Comments

cdce8p commented 2 years ago

I no longer need it myself. If someone else would like to continue with the PR, feel free to reuse it.