+4
-1
lex/gen.go
+4
-1
lex/gen.go
···
147
147
148
148
pf("const (")
149
149
for _, t := range tps {
150
-
pf("%sNSID = %q", t.Name, t.Type.id)
150
+
// this seems to be the way to ignore non-top level types
151
+
if !strings.Contains(t.Name, "_") {
152
+
pf("%sNSID = %q", t.Name, t.Type.id)
153
+
}
151
154
}
152
155
pf(")\n\n")
153
156