We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e83a889 commit 4b1141bCopy full SHA for 4b1141b
src/Lean/Elab/BuiltinCommand.lean
@@ -79,9 +79,8 @@ private def checkEndHeader : Name → List Scope → Option Name
79
| _, _ => some .anonymous -- should not happen
80
81
@[builtin_command_elab «namespace»] def elabNamespace : CommandElab := fun stx =>
82
- match stx with
83
- | `(namespace $n:identWithOptDot) => addNamespace n.raw.getIdOrIdWithOptDot
84
- | _ => throwUnsupportedSyntax
+ -- TODO after stage0 update: back to syntax `match`
+ addNamespace stx[1].getIdOrIdWithOptDot
85
86
@[builtin_command_elab «section»] def elabSection : CommandElab := fun stx => do
87
match stx with
0 commit comments