Set the OpenSCAD indenter to C-style instead of none.
Summary:
OpenSCAD uses braces enclosed blocks, you can see examples at https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Commented_Example_Projects .
The brace and indentation style is close to C (optional braces if there is only one sub statement and one-line blocks are allowed). Therefore, the C-style indenter is well fitted IMHO.
Side question: the C indenter indents the next line when a block keyword if found (for, if, etc.) even when no opening brace is typed. Is there a way to extend this list of indenter keywords for OpenSCAD (rotate, linear_extrude, etc.) ?
Reviewers: Framework: Syntax Highlighting, cullmann
Reviewed By: Framework: Syntax Highlighting, cullmann
Subscribers: cullmann, ngraham, kwrite-devel, kde-frameworks-devel, julianstirling
Tags: Kate, Frameworks
Differential Revision: https://phabricator.kde.org/D23447