Skip to content

Commit d5bdad8

Browse files
committed
merge
1 parent d89027a commit d5bdad8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Lean/Elab/Tactic/Grind/Main.lean

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,16 @@ def setGrindParams (stx : TSyntax `tactic) (params : Array Syntax) : TSyntax `ta
200200
def getGrindParams (stx : TSyntax `tactic) : Array Syntax :=
201201
stx.raw[grindParamsPos][1].getSepArgs
202202

203-
/-- Filter out `+premises` from the config syntax -/
204-
def filterPremisesFromConfig (config : TSyntax ``Lean.Parser.Tactic.optConfig) : TSyntax ``Lean.Parser.Tactic.optConfig :=
203+
/-- Filter out `+suggestions` from the config syntax -/
204+
def filterSuggestionsFromConfig (config : TSyntax ``Lean.Parser.Tactic.optConfig) : TSyntax ``Lean.Parser.Tactic.optConfig :=
205205
let configItems := config.raw.getArgs
206206
let filteredItems := configItems.filter fun item =>
207-
-- Keep all items except +premises
207+
-- Keep all items except +suggestions
208208
-- Structure: null node -> configItem -> posConfigItem -> ["+", ident]
209209
match item[0]? with
210210
| some configItem => match configItem[0]? with
211211
| some posConfigItem => match posConfigItem[1]? with
212-
| some ident => !(posConfigItem.getKind == ``Lean.Parser.Tactic.posConfigItem && ident.getId == `premises)
212+
| some ident => !(posConfigItem.getKind == ``Lean.Parser.Tactic.posConfigItem && ident.getId == `suggestions)
213213
| none => true
214214
| none => true
215215
| none => true
@@ -231,7 +231,7 @@ def mkGrindOnly
231231
else
232232
let param ← Grind.globalDeclToGrindParamSyntax declName kind minIndexable
233233
params := params.push param
234-
let filteredConfig := filterPremisesFromConfig config
234+
let filteredConfig := filterSuggestionsFromConfig config
235235
let result ← `(tactic| grind $filteredConfig:optConfig only)
236236
return setGrindParams result params
237237

0 commit comments

Comments
 (0)