D23447: Set the OpenSCAD indenter to C-style instead of none.
noreply at phabricator.kde.org
Sun Aug 25 19:16:59 BST 2019
mickaelbo created this revision.
mickaelbo added a reviewer: Framework: Syntax Highlighting.
Herald added projects: Kate, Frameworks.
Herald added a subscriber: kde-frameworks-devel.
mickaelbo requested review of this revision.
OpenSCAD uses braces enclosed blocks, you can see examples at https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Commented_Example_Projects <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.) ?
R216 Syntax Highlighting
To: mickaelbo, #framework_syntax_highlighting
Cc: kwrite-devel, kde-frameworks-devel, julianstirling, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KWrite-Devel