From 0395f8de45808447b5648b3594b749ba680f6d82 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sun, 15 Apr 2018 17:58:58 +1000 Subject: [PATCH] Make IDDoubleZ an ident --- lang/token/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/token/list.go b/lang/token/list.go index a1092824..e51c2586 100644 --- a/lang/token/list.go +++ b/lang/token/list.go @@ -70,8 +70,8 @@ func (x ID) IsStrLiteral(m *Map) bool { func (x ID) IsIdent(m *Map) bool { if x < nBuiltInIDs { - // TODO: move Diamond into the built-in ident space. - return x == IDDiamond || (minBuiltInIdent <= x && x <= maxBuiltInIdent) + // TODO: move DoubleZ and Diamond into the built-in ident space. + return x == IDDoubleZ || x == IDDiamond || (minBuiltInIdent <= x && x <= maxBuiltInIdent) } else if s := m.ByID(x); s != "" { return alpha(s[0]) }