feat: formatter: don't escape inaccessible names

This commit is contained in:
Sebastian Ullrich 2020-09-17 16:30:03 +02:00 committed by Leonardo de Moura
parent 9b6370bdbe
commit 98453c468b

View file

@ -266,7 +266,7 @@ let id := stx.getId;
let s := id.toString;
if id.isAnonymous then
pushToken "[anonymous]"
else if id.components.any Name.isNum then
else if LocalContext.isInaccessibleUserName id || id.components.any Name.isNum then
-- not parsable anyway, output as-is
pushToken s
else do {