You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Geany 1.28 Release (Windows and Linux) and Geany 1.29 and I think also Geany 1.27 and before
Lines that start with ';' are syntax highlighted as comment.
Lines that start with '#' are syntax highlighted as comment.
An entry "key=value" in a line starting with ';' is shown in the symbols list.
An entry "key=value" in a line starting with '#' is not shown in the symbols list.
I attached a small test file test.ini, but I had to rename it to test.ini.txt because github refused to upload test.ini test.ini.txt
The text was updated successfully, but these errors were encountered:
With the default settings, ; shouldn't be highlighted as a comment (we even tell it to use # as the comment start). I guess the syntax highlighter must have it hard-coded inside to always support Windows-style ; comments.
The highlighting of comments is the Scintilla lexer, which highlights several similar versions of properties files and is hard coded to use #, ! and ; for comments. There is not way to change that without changing Scintilla, which is a separate project from Geany, you can raise a request here. But since all such properties files tend to use the extensions .ini, .conf etc interchangably its hard to tell them apart and I suggest it should remain general despite the fact that an occasional error may occur in highlighting.
The symbol parser is hard coded to use # and // as comments. There is no way of changing that without changing the ctags parser. The parsers mostly come from the universal-ctags project. The Geany one is the parent of the uctags one, but that has been changed to look for ; as well. There is an ongoing exercise to align Geany's parsers with uctags. @techee, maybe this should be added to the TODO list if it isn't already.
Geany 1.28 Release (Windows and Linux) and Geany 1.29 and I think also Geany 1.27 and before
Lines that start with ';' are syntax highlighted as comment.
Lines that start with '#' are syntax highlighted as comment.
An entry "key=value" in a line starting with ';' is shown in the symbols list.
An entry "key=value" in a line starting with '#' is not shown in the symbols list.
I attached a small test file test.ini, but I had to rename it to test.ini.txt because github refused to upload test.ini
test.ini.txt
The text was updated successfully, but these errors were encountered: