mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Introduce "pre" and "post" asserts.
This commit is contained in:
1 parent
dd06f67f7a
commit
1d3ae23418
7 files changed
+120
-44
No files matched your search
@@ -192,6 +192,8 @@ const (
|
||||
IDUse = ID(0x6A<<KeyShift | FlagsOther)
|
||||
IDVar = ID(0x6B<<KeyShift | FlagsOther)
|
||||
IDIdeal = ID(0x6C<<KeyShift | FlagsOther)
|
||||
IDPre = ID(0x6D<<KeyShift | FlagsOther)
|
||||
IDPost = ID(0x6E<<KeyShift | FlagsOther)
|
||||
|
||||
IDFalse = ID(0x90<<KeyShift | FlagsLiteral | FlagsImplicitSemicolon)
|
||||
IDTrue = ID(0x91<<KeyShift | FlagsLiteral | FlagsImplicitSemicolon)
|
||||
@@ -319,6 +321,8 @@ var builtInsByKey = [nBuiltInKeys]struct {
|
||||
IDUse >> KeyShift: {"use", IDUse},
|
||||
IDVar >> KeyShift: {"var", IDVar},
|
||||
IDIdeal >> KeyShift: {"ideal", IDIdeal},
|
||||
IDPre >> KeyShift: {"pre", IDPre},
|
||||
IDPost >> KeyShift: {"post", IDPost},
|
||||
|
||||
IDFalse >> KeyShift: {"false", IDFalse},
|
||||
IDTrue >> KeyShift: {"true", IDTrue},
|
||||
|
||||
Reference in new issue
Block a user