Commit Graph

543 Commits

Author SHA1 Message Date
XeroOl
3dc9e36af6 workaround for fennel#221 2024-05-14 00:46:10 -05:00
XeroOl
e37c77958d fix zero-arg documented function formatting 2024-05-14 00:18:07 -05:00
XeroOl
9bad702d91 make docs will download and rebuild lua documentation 2024-05-13 23:58:48 -05:00
XeroOl
3fad66a476 Switch docs to autogenerated 2024-05-13 23:58:37 -05:00
XeroOl
043cfc033c last doc gen update before I do the changes 2024-05-13 22:52:51 -05:00
XeroOl
1c925ea1fb More doc-making work! it works! 2024-05-13 22:43:33 -05:00
XeroOl
bb420adbf9 docs are closer to working 2024-05-13 02:24:27 -05:00
XeroOl
0068662c8b add test for a fix I did a while ago 2024-05-13 01:53:52 -05:00
XeroOl
8d57f60369 remove some comments :) 2024-05-13 01:07:05 -05:00
XeroOl
4bce5c87ec Tests for reader macros 2024-05-13 01:06:46 -05:00
XeroOl
f17342b7ce Fix hashfn and quote and unquote 2024-05-12 16:45:18 -05:00
XeroOl
34e0bce092 Hover in hashfn 2024-05-12 15:32:43 -05:00
XeroOl
be44cda696 Unknown field errors in _G are suppressed 2024-05-12 12:26:24 -05:00
XeroOl
31c22fe261 doc extraction, also parse the module descriptions 2024-05-12 12:01:06 -05:00
XeroOl
579fb44109 split code path for builtins vs globals 2024-05-12 12:00:19 -05:00
XeroOl
db7a911b7f docs get-global takes a self parameter 2024-05-07 14:03:19 -05:00
XeroOl
10aeb63142 more doc extraction code 2024-05-07 14:02:50 -05:00
XeroOl
767cb88f63 beginning work on autogenerated docs
so that lua5.1 through lua5.4 will have accurate docs. There are *so*
many minor changes between the versions that I don't trust myself to
manually audit the differences. Also, if they release a lua 5.5 I do
not want to bother with it.
2024-05-07 00:15:47 -05:00
XeroOl
711c225e9c Fix crash when searching non-table documentation 2024-05-06 10:36:07 -05:00
XeroOl
2d7c8b1ad7 Lints for doc fields, doc hovers on strings 2024-05-04 15:37:01 -05:00
XeroOl
926dff9267 Docs when completing string fields 2024-05-04 15:37:01 -05:00
XeroOl
de7ca2a5c1 clean things up 2024-05-04 15:37:01 -05:00
XeroOl
d06e0dfbe8
test function to check code actions don't exist 2024-05-04 01:27:37 -05:00
XeroOl
bd2d208724
Make if statements behave more normally
the fennel compiler someimes inserts ghost `nil symbols, and this code
will simply take those back out. It shouldn't be necessary.
2024-05-02 21:05:48 -05:00
XeroOl
944f57cc08 No duplicate scope completions 2024-04-30 21:42:00 -05:00
XeroOl
343777d301 eglot completion quirk tests 2024-04-30 21:40:07 -05:00
XeroOl
ac406e38d0 Next attempt to fix emacs 2024-04-30 16:56:41 -05:00
XeroOl
1135eee7ed attempt to fix the emacs completions again 2024-04-30 16:16:43 -05:00
Phil Hagelberg
80a43cab08 Avoid include warnings when compiling.
Also update the readme regarding Emacs; version 30 doesn't need any config.
2024-04-27 14:07:27 -05:00
XeroOl
a4251e5d21 single out the Eglot client because it does completions differently 2024-04-27 00:45:18 -05:00
XeroOl
f96620a028 Fix crash. Not sure when this broke. oops! 2024-04-24 16:21:00 -05:00
XeroOl
e22f2bba01 small refactor 2024-04-24 15:46:25 -05:00
XeroOl
40605c7bcb fix: Choose positionEncoding=utf-8 even if it isn't listed last 2024-04-07 23:26:17 -05:00
XeroOl
311ce2645e fix fennel-ls#22
This is getting messy, but now the same sym can reference multiple
places. (. file references mysym) only holds the last one, but
(. file definitions <x> :referenced-by) could still hold older
references.
2024-04-07 23:18:14 -05:00
XeroOl
5fa5a0a323 make repl runs a fennel repl with the path set correctly 2024-03-28 23:59:45 -05:00
XeroOl
59b966a25f Add a bunch of tests for compiler recovery
Ideally, any time you write:

(local x (<some form with compiler error>))
(print x)

I don't want it to say "unknown variable x". To make sure that's the
case, I need to do as much error recovery as possible. I don't have full
error recovery, but I've got the common cases, and I'm working down the
fennel.friends list
2024-03-28 23:51:22 -05:00
XeroOl
3bc530e11b in tests, separate compile error diagnostics from lints 2024-03-28 23:04:25 -05:00
XeroOl
b5750b1a8a rename diagnostic to lint 2024-03-28 23:01:20 -05:00
XeroOl
0fd6a48ed2 basic code action test for the (+) -> 0 lint 2024-03-28 22:41:23 -05:00
XeroOl
e81920585d add more tests for error recovery 2024-03-28 22:39:13 -05:00
XeroOl
e47ee55784 shuffle around how encoding works in the tests 2024-03-28 22:38:01 -05:00
XeroOl
c92ea1c3ca fix recovery from empty () call, because it didn't work 2024-03-28 22:37:10 -05:00
XeroOl
a1c4e84910 recovery from empty () call 2024-03-26 14:12:57 -05:00
XeroOl
7c81ffcbb3 First attempt at code actions, no tests yet 2024-03-26 14:12:34 -05:00
XeroOl
ca2dbf9237 let me hide keys using mt.__json_exclude_keys 2024-03-26 13:00:57 -05:00
XeroOl
c79c80cb41 fix the path with --check 2024-03-26 12:58:06 -05:00
XeroOl
549e240787 fixed links in readme 2024-03-23 20:24:52 -05:00
XeroOl
2f62761e37 unknown module in (include) doesn't propagate errors 2024-03-22 12:30:08 -05:00
XeroOl
cc05d7089f final attempt at fixing builds.sr.ht 2024-03-04 00:38:47 -06:00
XeroOl
80d0e297a1 more likely pass builds.sr.ht tests 2024-03-04 00:36:53 -06:00