IntelliJ-Luanalysis icon indicating copy to clipboard operation
IntelliJ-Luanalysis copied to clipboard

Request for support for PICO-8 quirks?

Open petitchou opened this issue 3 years ago • 0 comments

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!

petitchou avatar Oct 22 '21 07:10 petitchou