Commit graph

2970 commits

Author SHA1 Message Date
Leonardo de Moura
7e1bb3e65b refactor: add MatchAltView.lean and PatternVar.lean 2021-06-28 08:29:47 -07:00
Leonardo de Moura
7f986c62ba refactor: add Arg.lean 2021-06-28 08:10:16 -07:00
Leonardo de Moura
795b15581b refactor: add BuiltinTerm.lean 2021-06-28 07:55:52 -07:00
Sebastian Ullrich
fc821745ae fix: swallow exception on hover formatting 2021-06-23 23:29:46 +02:00
Wojciech Nawrocki
40f07ef6a1 fix: make mangling injective again 2021-06-23 00:08:20 -07:00
Wojciech Nawrocki
05d46348c7 fix: 32-bit Unicode name mangling 2021-06-23 00:08:20 -07:00
Sebastian Ullrich
cef3ade164 fix: info on non-atomic simp args 2021-06-23 00:08:07 -07:00
Gabriel Ebner
3cff5ceb99 perf: make trace[...] ... notation lazy 2021-06-23 00:07:27 -07:00
Gabriel Ebner
6a4982622f fix: nontermination in Syntax.reprint 2021-06-23 00:07:27 -07:00
Sebastian Ullrich
1c2aacc4a8 fix: worker: don't wait for tasks on exit 2021-06-23 08:53:20 +02:00
Sebastian Ullrich
0948742da1 perf: fix formatting info tree unconditionally 2021-06-22 10:22:08 +02:00
Sebastian Ullrich
479edbe235 refactor: avoid unnecessary withLCtx 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
30a0954424 refactor: revert MonadRef changes 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
65f2874d86 chore: address reviews 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
eb1e285e26 chore: style 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
b8be90fa08 fix: do not show complex terms in hover 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
736d32c026 fix: hover on synthetic sorry 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
91e3100e30 fix: properly resolve syntax kinds in macro/elab_rules 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
3f4ab0a2af feat: implement elab_rules
TODO: infer category from quotation type
2021-06-21 10:17:26 -07:00
Sebastian Ullrich
a86efc4796 fix: info tree context of command macros 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
9101c9d5da feat: support docstrings on syntax/macro/... 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
14ceae0b0b feat: remove hover restriction to first token 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
652097e184 fix: separate ElabInfo from MacroExpansionInfo, always emit the former before the latter
This way all hover info is contained in the former info node kinds
2021-06-21 10:17:26 -07:00
Sebastian Ullrich
d44e2ea4bd feat: hover & go-to-definition for syntax (on first token) 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
459e2e8cea chore: print info tree elaborators 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
da4c46370d feat: store elaborator declaration name in info tree 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
062cc5d567 chore: remove inline 2021-06-19 15:01:43 +02:00
Sebastian Ullrich
720954d63a perf: Lean.Elab.Do: avoid code explosion 2021-06-17 12:51:23 -07:00
Sebastian Ullrich
07285b85ca feat: compiler.reuse option 2021-06-17 12:51:23 -07:00
Sebastian Ullrich
b4e9ba1500 perf: specialize more monad instances 2021-06-17 11:25:58 +02:00
Sebastian Ullrich
380c6c285a perf: specialize some monad instances 2021-06-17 11:25:58 +02:00
Leonardo de Moura
f816e6107b fix: report (pending) type mismatch errors in simp arguments 2021-06-16 11:35:49 -10:00
Wojciech Nawrocki
7485ab5322 chore: style 2021-06-15 22:53:19 +02:00
Wojciech Nawrocki
e6b2818169 chore: fixes 2021-06-15 22:53:19 +02:00
Wojciech Nawrocki
bd4af2b340 feat: routing of custom LSP requests 2021-06-15 22:53:19 +02:00
Wojciech Nawrocki
4b3987c9cb feat: LSP request handler registration 2021-06-15 22:53:19 +02:00
Wojciech Nawrocki
39931566a0 feat: separate RequestContext in server 2021-06-15 22:53:19 +02:00
Sebastian Ullrich
884aa03584 fix: implement overlooked have syntax 2021-06-15 17:46:16 +02:00
Daniel Selsam
51d26e1172 feat: unexpanders take priority 2021-06-13 09:33:49 +02:00
Daniel Selsam
ded51882a0
feat: pp motives and misc delab fixes 2021-06-13 00:06:27 +02:00
Sebastian Ullrich
4ed66cae3e feat: add --print-prefix, --print-libdir flags
The names were taken from `llvm-config`
2021-06-11 17:53:51 -07:00
Sebastian Ullrich
1ebcf76d48 refactor: remove explicitly lifted IO functions and move more things into IO.FS
Automatic lifting takes care of this, and it wasn't consistently applied anyway
2021-06-11 17:53:51 -07:00
Leonardo de Moura
a435f3d641 feat: reduce s.1 =?= v to s =?= ⟨v⟩ if structure has a single field
This feature was suggested by @dselsam at PR #521.
It closes #509
2021-06-11 11:23:19 -07:00
Gabriel Ebner
94e299a730 fix: instantiate mvars in rewrite tactic 2021-06-11 10:27:05 -07:00
Sebastian Ullrich
cc2f483951 chore: note on previous commit 2021-06-10 18:25:39 +02:00
Sebastian Ullrich
e4bf5977d9 fix: syntax pattern match against multiple identifiers 2021-06-10 18:15:40 +02:00
Gabriel Ebner
47f3cac0c5
fix: server: do not return duplicate response when worker crashes 2021-06-10 09:46:24 +02:00
Gabriel Ebner
f5f9be191b fix: show expected type in term goal 2021-06-07 16:23:22 -07:00
Gabriel Ebner
960cfd9cae feat: store expected type in info tree 2021-06-07 16:23:22 -07:00
Gabriel Ebner
5786f58738 feat: plain term goal request 2021-06-07 16:23:22 -07:00