fix: space before 'at' in location
This commit is contained in:
parent
6fb2a2b47b
commit
8d370f151f
3 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue