Set the OpenSCAD indenter to C-style instead of none.

Authored by mickaelbo on Aug 25 2019, 9:56 PM.

Description

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

Details

Committed
cullmannAug 25 2019, 9:56 PM
Reviewer
Framework: Syntax Highlighting
Differential Revision
D23447: Set the OpenSCAD indenter to C-style instead of none.
Parents
R216:c6cbc14a0f52: Merge branch 'arcpatch-D23061'
Branches
Unknown
Tags
Unknown