mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Make IDDoubleZ an ident
This commit is contained in:
1 parent
eeebd58d7b
commit
0395f8de45
1 file changed
+2
-2
+2
-2
@@ -70,8 +70,8 @@ func (x ID) IsStrLiteral(m *Map) bool {
|
|||||||
|
|
||||||
func (x ID) IsIdent(m *Map) bool {
|
func (x ID) IsIdent(m *Map) bool {
|
||||||
if x < nBuiltInIDs {
|
if x < nBuiltInIDs {
|
||||||
// TODO: move Diamond into the built-in ident space.
|
// TODO: move DoubleZ and Diamond into the built-in ident space.
|
||||||
return x == IDDiamond || (minBuiltInIdent <= x && x <= maxBuiltInIdent)
|
return x == IDDoubleZ || x == IDDiamond || (minBuiltInIdent <= x && x <= maxBuiltInIdent)
|
||||||
} else if s := m.ByID(x); s != "" {
|
} else if s := m.ByID(x); s != "" {
|
||||||
return alpha(s[0])
|
return alpha(s[0])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user