mirror of
https://github.com/irmen/prog8.git
synced 2025-10-15 17:16:49 +00:00
allow more curly brace styles
This commit is contained in:
@@ -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.
|
||||
|
||||
|
@@ -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?
|
||||
|
||||
...
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user