When filetype is changed to a compatible filetype (such as C->C++ and then possibly back to C), colorization is lost. It seems that with Scintilla 5, when language-specific highlighting changes, SCI_SETKEYWORDS has to be called again to take effect.
By setting keyword_hash to 0 we force Geany to call sci_set_keywords() in document_highlight_tags() which fixes the problem. Fixes #3550 You can view, comment on, or merge this pull request online at: https://github.com/geany/geany/pull/3553 -- Commit Summary -- * Fix keyword colorization on filetype change -- File Changes -- M src/document.c (3) -- Patch Links -- https://github.com/geany/geany/pull/3553.patch https://github.com/geany/geany/pull/3553.diff -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3553 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/pull/3...@github.com>