> @@ -1776,3 +1776,23 @@ gboolean highlighting_is_code_style(gint lexer, gint style) > return !(highlighting_is_comment_style(lexer, style) || > highlighting_is_string_style(lexer, style)); > } > + > + > +gchar **highlighting_get_keywords(GeanyFiletypeID filetype_id) > +{ > + GString *str = g_string_sized_new(1000); > + gchar **keywords; > + gchar **keyword_str; > + > + foreach_strv(keyword_str, style_sets[filetype_id].keywords)
Ok, change the test to kwd && *kwd
. I'm not actually sure what foreach_strv
does though, at first I assumed, but after having just looked at its definition, I'm much less sure what it does (loops through each char in each element in the string vector?).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.