Commit Graph

12 Commits

Author SHA1 Message Date
Phil Hagelberg
d23d36a414 Support :union as lua-version setting. 2025-02-26 23:09:11 -08:00
Phil Hagelberg
98cd94d212 Add aliases for lua-versions.
Now you can specify "lua54" OR "lua5.4" and get what you need.
2025-02-26 01:38:58 -08:00
Phil Hagelberg
2edb9c4df5 Update to fennel 1.5.3 2025-02-16 17:20:32 -08:00
Phil Hagelberg
6cddd6a030 Explain that love2d support is opt-in for licensing reasons.
Booooooooo GFDL.

Also include a link to apt.technomancy.us.
2025-02-15 09:51:54 -08:00
XeroOl
bfc6d64237 docs: add a table for lspconfig to be happy 2025-01-16 20:55:30 -06:00
Phil Hagelberg
e5dc04764c Allow trailing underscores to bypass unused local warnings. 2025-01-05 12:40:25 -08:00
Matthew Lyon
e4e5054876 Add instructions for configuring Sublime Text 2024-10-10 19:56:30 -05:00
Phil Hagelberg
a27f42bfa4 Add match-should-case lint and fix action.
When a `match` call's patterns do not contain any symbols that reference
the outer scope, then there is no reason to use `match`; that call
should be replaced with `case`.

This allocates diagnostic code 308 to match-should-case.

In order to detect this, I had to add a loop over file.lexicals. This
is often a very large table, so it could adverse performance impact. I
believe it is necessary in order to distinguish between case vs match
since other means seem to only be applied after macroexpansion by
which time neither one exists.

I've updated docs/linting.md to mention the new loop and cleaned up a
few things in that file that were outdated.

I've added tests for the new lint to ensure it doesn't trigger when it
shouldn't.
2024-10-10 19:46:59 -05:00
Phil Hagelberg
1c6999ea3f Fix loading of globals from love2d generated documentation.
The first thing to change is to load the love2d docset inside a pcall,
because it's not included in the standard `make` build, so we need to
not crash if it's not present. Note that we are storing these under
libraries.love2d rather than libraries.love-2d, because even tho it's
inconsistent with tic-80; I've never seen them use the hyphenated
version, and now the name matches the module name.

Secondly, we extend the get-global function to work with anything in
the server.configuration.libraries table, not just hard-coded to
tic-80.

Finally, update the manual to reflect the removal of the love2d hypen.
2024-09-07 15:00:13 -07:00
Emma
f0c512575e Add Love2D API generation flag option to make docs target 2024-09-07 12:33:57 -04:00
Emma
0e0121825d WIP adding Love2D configuration 2024-09-07 11:12:32 -04:00
XeroOl
e493b0e21f Reorganize the readme files 2024-07-07 23:29:46 -05:00