[Github-comments] [geany/geany] Enable regex parsers (and perform complete ctags sync as a result) (#2132)

Jiří Techet notifications at xxxxx
Wed May 22 12:42:28 UTC 2019


@b4n I'm done, phew! It's your turn :-)

The current state is this: if you delete geany/ctags/main, replace it with upstream-ctags/main and apply the 6-line patch (which I might eliminate in the future, it just requires some help on the uctags side and some more work on our side), you are done. This is the very last manual ctags/main sync so you'd better enjoy reviewing it - such an opportunity won't happen in the future ;-)

In any case, it doesn't make sense to review the patches as they are in this pull request - most of it is just how I tried to reduce the number of diffs against uctags and also originally I didn't even dream about having a full sync so there are some patches trying to simplify future manual syncs which are pointless now.

I think to review this it's best to first look at the corresponding upstream changes - it's these pull requests:

https://github.com/universal-ctags/ctags/pull/2088
https://github.com/universal-ctags/ctags/pull/2102

Then, the majority of Geany changes is inside src/tagmanager/tm_ctags.c and this file should be reviewed as a whole. It however resembles the mini-geany.c test mostly, it just does our specific things with the collected tags. To avoid extra callbacks, I moved tag creation functions from tm_source_file_c to this file in

https://github.com/geany/geany/pull/2132/commits/266283c9a1aa3aa22bc384e2c61acb61135926fe

Other patches from this pull request worth looking at are:

https://github.com/geany/geany/pull/2132/commits/2413f2e170bdd6b708cad715de006932bb7e8dd9
https://github.com/geany/geany/pull/2132/commits/f6139d3b26e3bcfe847f94a9546636c37185fad7
https://github.com/geany/geany/pull/2132/commits/75c8c6c829f481d0b75c5d70eb1f51b3334234c9 (and its bugfix https://github.com/geany/geany/pull/2132/commits/5c35fa79575a80498b18500c2d0c8e1904418a91)
https://github.com/geany/geany/pull/2132/commits/0182f7d1f0d254388fa9746c98dcb9941f6d488b
https://github.com/geany/geany/pull/2132/commits/170b388ec857983c3bba0489633a1c68e13a5227

The rest is just intermediate garbage.

I'd suggest that you have a look at what I described above, play with the ActionScript and Cobol regex parsers to see they work and if everything is OK, I'll rebase this pull request this way:

1. I remove the ActionScript and Cobol regex parsers and the related code
2. I'll make the ctags changes a single commit - basically "sync to upstream ctags version" where I copy-over the ctags main and apply the patch
3. I'll make a single commit containing all the Geany changes (something like "make Geany compile with the upstream ctags") so it will be easier to see what changes were made on the Geany side

Does it sound OK to you?


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2132#issuecomment-494785616
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190522/000967ac/attachment.html>


More information about the Github-comments mailing list