Skip to content

Commit 4b1141b

Browse files
committed
this work?
1 parent e83a889 commit 4b1141b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Lean/Elab/BuiltinCommand.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@ private def checkEndHeader : Name → List Scope → Option Name
7979
| _, _ => some .anonymous -- should not happen
8080

8181
@[builtin_command_elab «namespace»] def elabNamespace : CommandElab := fun stx =>
82-
match stx with
83-
| `(namespace $n:identWithOptDot) => addNamespace n.raw.getIdOrIdWithOptDot
84-
| _ => throwUnsupportedSyntax
82+
-- TODO after stage0 update: back to syntax `match`
83+
addNamespace stx[1].getIdOrIdWithOptDot
8584

8685
@[builtin_command_elab «section»] def elabSection : CommandElab := fun stx => do
8786
match stx with

0 commit comments

Comments
 (0)