-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asciidoc symbols panel cannot display Level 5 Section Title #3411
Comments
@techee something changed when it was upstreamed, the parser accepts level 5 here and it has a letter here but its not in the enum here? Whats the comment about, does it matter not being in the enum, or does Geany just ignore letter And whats "cork" (a tree bark stopper in a wine bottle or a place in Ireland is all I know)? |
Note the difference in numbering in uctags and in what @jack6th sent as an example - level 5 in uctags is 5 equal signs while in the example above it is 6 equal signs because it starts from level 0. The Basically right now
It's the place in Ireland ;-). No, well, I have no idea about where the name came from but when a parser uses "cork", it can do things like |
No its named right, its the count of the number of characters the same, it needs one subtracted because C is 0 based indexing, but having 0 characters the same is hard to detect as markup :-)
Although this compares
Probably should be, current Asciidoc has the levels as the OP copied from its docs. Historically IIRC (its a looooong time ago) it was originally designed to mainly handle sections with the heading underlined by a line of the same length, of which there are only four levels, but those are now correctly deprecated in Asciidoc since they don't work with variable width fonts, and are shaky with Asian double width characters, and really bad with other Unicode characters of zero, half, and one and a half width. That would explain the comment here. |
Yep, I got this one wrong.
Notice, though, that the original only supported level 4 sections (i.e. 5 geany/tagmanager/ctags/asciidoc.c Line 42 in f227076
while the current ctags parser supports level 5 sections (i.e. 6 geany/ctags/parsers/asciidoc.c Line 58 in ae1f499
The
I actually based the new markdown parser on the asciidoc parser with the same limitation of the number of sections so this one could be increased too. |
except that as the OP said, it doesn't, or it does and Geany doesn't, but anyway level 5 doesn't show in the symbols. Does it matter that the enum here does not go to level 5? |
Or is this the culprit in T-T-T-(takes brave pills)-Tagmanager ;-) |
Yeah, we also don't have the kind mapped here ( geany/src/tagmanager/tm_parser.c Line 837 in ae1f499
I'll prepare a patch. |
This is probably "correct" but extremely ugly. Those geany/ctags/parsers/asciidoc.c Line 62 in ae1f499
and thanks to |
geany v.138 on Windows
Level 5 Section Title is lost in symbols panel.
The text was updated successfully, but these errors were encountered: