<table><tr><td style="">mickaelbo created this revision.<br />mickaelbo added a reviewer: Framework: Syntax Highlighting.<br />Herald added projects: Kate, Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />mickaelbo requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23447">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>OpenSCAD uses braces enclosed blocks, you can see examples at <a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Commented_Example_Projects" class="remarkup-link" target="_blank" rel="noreferrer">https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Commented_Example_Projects</a> .</p>
<p>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.</p>
<p>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.) ?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23447">https://phabricator.kde.org/D23447</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>data/syntax/openscad.xml</div></div></div><br /><div><strong>To: </strong>mickaelbo, Framework: Syntax Highlighting<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, julianstirling, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>