<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear all,<br>
<br>
now that the <a
href="http://lists.geany.org/pipermail/users/2016-December/010159.html">segfault
problem</a> is out of the way, I am still struggling with one
point regarding the <a href="https://github.com/Silmathoron/geany">custom
lexer</a> I created: the auto-ident behaviour.<br>
<br>
The syntax of NESTML is very similar to that of Python (you can see
a <a
href="https://github.com/nest/nestml/issues/303#issuecomment-267830820">screenshot
here</a>) so I would like to make Geany increase the indent after
a column, and decrease it again after the keyword "<tt>end</tt>".<br>
<br>
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.<br>
Similarly, I found a <a
href="https://github.com/geany/geany/blob/2a2ae728341d12b7cea29b671beb08e441f62d95/src/editor.c#L1414"><tt>get_python_indent</tt>
method</a> in <tt>src/editor.c</tt> with a comment saying <tt>/*
add extra indentation for Python after colon */</tt>, but adding a
condition to also recognize <tt>SCE_NESTML_OPERATOR</tt> did not
solve the problem (and I can't find where this function is called
anyway).<br>
<br>
Could you tell me where auto-indent instructions are declared in
Geany? Or is it something missing with the lexer?<br>
<br>
Best,<br>
Tanguy<br>
</body>
</html>