Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 30 Jun 2024 09:52:40 UTC Commit: ef70f3b7d12207a19e4b2ae904028bf911c5fc1c https://github.com/geany/geany/commit/ef70f3b7d12207a19e4b2ae904028bf911c5fc...
Log Message: ----------- Add Geany code delegating keyword highlighting to plugins
Modified Paths: -------------- src/document.c
Modified: src/document.c 4 lines changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -44,6 +44,7 @@ #include "msgwindow.h" #include "navqueue.h" #include "notebook.h" +#include "pluginextension.h" #include "project.h" #include "sciwrappers.h" #include "sidebar.h" @@ -2719,6 +2720,9 @@ void document_highlight_tags(GeanyDocument *doc) GString *keywords_str; gint keyword_idx;
+ if (plugin_extension_symbol_highlight_provided(doc, NULL)) + return; + /* some filetypes support type keywords (such as struct names), but not * necessarily all filetypes for a particular scintilla lexer. this * tells us whether the filetype supports keywords, and if so
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).