fix: space before 'at' in location

This commit is contained in:
Daniel Selsam 2021-09-15 08:40:21 -07:00 committed by Sebastian Ullrich
parent 6fb2a2b47b
commit 8d370f151f
3 changed files with 3 additions and 1 deletions

View file

@ -324,7 +324,7 @@ syntax config := ("(" &"config" " := " term ")")
syntax locationWildcard := "*"
syntax locationHyp := (colGt ident)+ ("⊢" <|> "|-")? -- TODO: delete
syntax locationTargets := (colGt ident)+ ("⊢" <|> "|-")?
syntax location := withPosition("at " locationWildcard <|> locationHyp)
syntax location := withPosition(" at " locationWildcard <|> locationHyp)
syntax (name := change) "change " term (location)? : tactic
syntax (name := changeWith) "change " term " with " term (location)? : tactic

View file

@ -484,6 +484,7 @@ def format (formatter : Formatter) (stx : Syntax) : CoreM Format := do
(fun _ => throwError "format: uncaught backtrack exception")
def formatTerm := format $ categoryParser.formatter `term
def formatTactic := format $ categoryParser.formatter `tactic
def formatCommand := format $ categoryParser.formatter `command
builtin_initialize registerTraceClass `PrettyPrinter.format;

View file

@ -534,6 +534,7 @@ def parenthesize (parenthesizer : Parenthesizer) (stx : Syntax) : CoreM Syntax :
(fun _ => throwError "parenthesize: uncaught backtrack exception")
def parenthesizeTerm := parenthesize $ categoryParser.parenthesizer `term 0
def parenthesizeTactic := parenthesize $ categoryParser.parenthesizer `tactic 0
def parenthesizeCommand := parenthesize $ categoryParser.parenthesizer `command 0
builtin_initialize registerTraceClass `PrettyPrinter.parenthesize