mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
Add double-curly blocks
This commit is contained in:
1 parent
4cfc367a9b
commit
3fe3f84106
8 files changed
+1243
-1192
No files matched your search
@@ -14,6 +14,7 @@
|
||||
- Added `std/wbmp`.
|
||||
- Added `WUFFS_BASE__PIXEL_BLEND__SRC_OVER`.
|
||||
- Added `WUFFS_BASE__PIXEL_FORMAT__BGR_565`.
|
||||
- Added double-curly blocks.
|
||||
- Added interfaces.
|
||||
- Added preprocessor.
|
||||
- Added single-quoted strings.
|
||||
|
||||
@@ -30,6 +30,10 @@ Minor features or restrictions include:
|
||||
- Labeled jumps look like `break.loopname` and `continue.loopname`, for a
|
||||
matching `while.loopname`. The `while.loopname`'s closing curly brace must be
|
||||
followed by `endwhile.loopname`.
|
||||
- A `while true` loop's block may use double-curly braces: `{{` and `}}`. The
|
||||
formatter will not add an indent to the code inside the block. This is useful
|
||||
when using `while true {{ etc; break; etc; break }}` to simulate what would
|
||||
be a (forwards) `goto` in other languages' straight-line code.
|
||||
|
||||
Wuffs code is formatted by the
|
||||
[`wuffsfmt`](https://godoc.org/github.com/google/wuffs/cmd/wuffsfmt) program.
|
||||
|
||||
Reference in new issue
Block a user