thorimur
|
182270f8bf
|
fix: typo in withSetOptionIn (#3806)
When using `withSetOptionIn` on syntax `set_option ... in <command>`,
recurse into command syntax (`stx[2]`) instead of the syntax `in`
(`stx[1]`).
---
Demonstration of `stx[1]` vs. `stx[2]`:
```lean
import Lean
def stx := (Lean.Unhygienic.run `(set_option trace.debug true in #print foo)).raw
#eval stx[1] -- Lean.Syntax.atom (Lean.SourceInfo.none) "in"
#eval stx[2] -- `#print` command syntax
```
|
2024-04-06 18:00:34 +00:00 |
|