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

Mickael Bosch 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.

REVISION SUMMARY
  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.) ?

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D23447

AFFECTED FILES
  data/syntax/openscad.xml

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...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190825/a3ff99d7/attachment-0001.html>


More information about the KWrite-Devel mailing list