Dear all,

now that the segfault problem is out of the way, I am still struggling with one point regarding the custom lexer I created: the auto-ident behaviour.

The syntax of NESTML is very similar to that of Python (you can see a screenshot here) so I would like to make Geany increase the indent after a column, and decrease it again after the keyword "end".

Because I thought it would be related, I managed to declare the folding procedure to recognize the column/end blocks; however, the indent still is not increased.
Similarly, I found a get_python_indent method in src/editor.c with a comment saying /* add extra indentation for Python after colon */, but adding a condition to also recognize SCE_NESTML_OPERATOR did not solve the problem (and I can't find where this function is called anyway).

Could you tell me where auto-indent instructions are declared in Geany? Or is it something missing with the lexer?

Best,
Tanguy