IntelliJ-Luanalysis
IntelliJ-Luanalysis copied to clipboard
Request for support for PICO-8 quirks?
Hey there!
I'm working on making a set of stubs for PICO-8, but I'm at a bit of an impasse.
PICO-8 is a "fantasy game console" that uses a dialect of Lua that's generally compliant with standard Lua, but it has a few quirks that I can't trick Luanalysis's lexer into working with or politely ignoring.
The quirks:
#include filename.lua
will pull a file into the interpreter.
?expression
and ? expression
are short forms for print(expression)
if
can be compressed to if (expression) command
The following work as bitwise operators: & | ^^ ~ << >> >>> <<> >><
\
can be used as an operator to perform integer division: print(13\4)
returns 3
Is there any way you could possibly create an optional way to toggle PICO-8 support? PICO-8's documentation (or the lack of it) is here, if you'd like to take a look.
If there's anything else I can do to help, please let me know. Thanks!