Skip to content

Pragmas

David von Tamar edited this page May 14, 2018 · 3 revisions

Overview

Pragmas are instructions given to the interpreter and affect its behavior during interpretation and translation time. Pragmas apply on the associated scope to which the comment belongs to.

Syntax

Pragmas are declared within square brackets inside a comment. Each pragma contains keywords. Keywords are separated by spaces and pragmas are separated by commas.

#[sort all, unindent all]

Sort

The sort pragma will sort all constructs within the scope in alphabetical order.

Unindent

The unindent pragma will insist that the entire scope will come within one line (when possible). If a comment comes in between two constructs, then a line break will come before and after the comment. If the scope has end-comments, then they will produce line breaks at the end of the scope as well.

All

The all keyword will apply the pragma to all nested scopes as well.

Clone this wiki locally