On Wed, 9 Aug 2023 at 12:48, Little Girl via Users users@lists.geany.org wrote:
Hey there,
Lex Trotman via Users wrote:
The ctags parser used by Geany only parses 3 levels https://github.com/universal-ctags/ctags/blob/master/parsers/html.c.
I'm not a C programmer at all, but I could give editing this file a whirl if you like.
Brave!! :-)
It seems like it would mostly be some quick busy-work of playing "Follow the Leader" with the code for the existing headings. Except for this part: When it comes to playing "Follow the Leader" to add the necessary lines to this section, would it be okay to use 'k' and 'l' and 'm' for "heading4", "heading5", and "heading6"?
https://github.com/universal-ctags/ctags/blob/master/parsers/html.c#L72-L74
Feel free to post a pull request on the Universal Ctags to improve it https://github.com/universal-ctags/ctags
Last, but not least, since this would be a "Will this work?" PR and not a "Yep, this works!" PR, would you babysit my work big-time to make sure I don't break anything?
Please note that the parser PR needs to be submitted to Universal ctags, not Geany. Except for a couple of historical parsers Geany does not carry changes that are not in uctags, we have just finished a lot of effort to remove differences between Geany's parsers and upstreams. Therefore your parser "babysitter" would probably be best someone from uctags.
The Geany parsers are usually updated from upstream uctags in bulk, although a Geany PR updating a single parser from upstream would probably be accepted.
There will be changes to Geany as well to use the new information the parser produces. Note that there are limited experts on this (not me) and so response to questions might be a bit slow, best to ask in an issue on Geany github not email.
Cheers Lex
-- Little Girl
There is no spoon. _______________________________________________ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org