fix: move doc string to parser that sets the SyntaxNodeKind for the { tac } notation
see #1403 This fixes the hover for `{ tac }`
This commit is contained in:
parent
c95acef20e
commit
e39eebabd9
2 changed files with 2 additions and 2 deletions
|
|
@ -20,8 +20,6 @@ example : True := by foo -- unknown tactic
|
|||
-/
|
||||
@[builtinTacticParser] def «unknown» := leading_parser withPosition (ident >> errorAtSavedPos "unknown tactic" true)
|
||||
|
||||
/-- The syntax `{ tacs }` is an alternative syntax for `· tacs`.
|
||||
It runs the tactics in sequence, and fails if the goal is not solved. -/
|
||||
@[builtinTacticParser] def nestedTactic := tacticSeqBracketed
|
||||
|
||||
def matchRhs := Term.hole <|> Term.syntheticHole <|> tacticSeq
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ namespace Tactic
|
|||
|
||||
def tacticSeq1Indented : Parser :=
|
||||
leading_parser many1Indent (group (ppLine >> tacticParser >> optional ";"))
|
||||
/-- The syntax `{ tacs }` is an alternative syntax for `· tacs`.
|
||||
It runs the tactics in sequence, and fails if the goal is not solved. -/
|
||||
def tacticSeqBracketed : Parser :=
|
||||
leading_parser "{" >> many (group (ppLine >> tacticParser >> optional ";")) >> ppDedent (ppLine >> "}")
|
||||
def tacticSeq :=
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue