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 ```
0 lines
Text
0 lines
Text