allow more curly brace styles

This commit is contained in:
Irmen de Jong
2023-06-27 01:59:22 +02:00
parent eab63ecc6c
commit 0a83b51e00
9 changed files with 78 additions and 25 deletions

View File

@@ -621,8 +621,6 @@ The syntax is::
return X * 3
}
The open curly brace must immediately follow the subroutine result specification on the same line,
and can have nothing following it. The close curly brace must be on its own line as well.
The parameters is a (possibly empty) comma separated list of "<datatype> <parametername>" pairs specifying the input parameters.
The return type has to be specified if the subroutine returns a value.

View File

@@ -1,11 +1,6 @@
TODO
====
- also allow this?
if variable { txt.print("yes") }
else { txt.print("no") }
- is it possible to allow the curly brace to be on the next line instead of requiring it to follow on the same line?
...