[Github-comments] [geany/geany] Highlighting Failure after replace all (#1020)

elextr notifications at xxxxx
Tue May 3 12:34:10 UTC 2016


After a replace all of a highlighted name (eg typename in c/c++) some of the occurrences of the replaced name are not highlighted.

Theorum:

I think the mechanism is:

1. do the replace, the replacements are not highlighted since the new name is not yet parsed by ctags as a typename.

2. a few 100 ms later the parser runs and the list of names is updated

3. but it seems only the part of the file from the first visible line to the end is invalidated since occurrences of the name before that position in the file are not highlighted, until something happens to invalidate that part of the file, then they are highlighted

Solution:

Probably the whole file should be invalidated after any parser update that changes the name lists, since its not known what part of the file this will impact.

---
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/issues/1020
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160503/80c3091f/attachment.html>


More information about the Github-comments mailing list