[Github-comments] [geany/geany] Add support for Kotlin tags (PR #3034)

elextr notifications at xxxxx
Tue Dec 7 09:07:18 UTC 2021


Implementing the whole grammar has problems for this use-case, not only speed, but also robustness.  It is being used on files that are being edited and may be eronneous or incomplet.  

Unless the parser can recover from an error it is going to lose all or many symbols in more cases if it parses things that are not essential to detecting the tags since it will then find more errors.  It is a problem with many languages, not just kotlin (see for example #2916), but the fact many tag parsers skip lots of code reduces the impact of partly edited code (outside of declarations).

This is also why full fat IDEs to try to insist that at least the the structural syntax is complete (eg {}s match) so their parsers have some handles to resync and recover after errors.

-- 
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/3034#issuecomment-987714843
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211207/2b11a95c/attachment.htm>


More information about the Github-comments mailing list