@b4n commented on this pull request.
@@ -877,6 +939,21 @@ static void styleset_from_mapping(ScintillaObject *sci, guint ft_id, guint lexer
if (styles[i].fill_eol) SSM(sci, SCI_STYLESETEOLFILLED, styles[i].style, TRUE); set_sci_style(sci, styles[i].style, ft_id, i); + if (styles[i].sub_stylable) + { + LexerStyle *style = &style_sets[ft_id].styles[i]; + + if (style->sub.count) + { + /* FIXME: can substyle allocation fail? and how do we know? */
Here I probably just need to read Lexilla's sources to see what happens, as it's not documented. Maybe it always works, maybe it returns a negative value?