Skip to content

Conversation

AdamNorberg
Copy link

The special Lua table named _ENV is sometimes used in Pico-8 for various shenanigans. There are other special Lua tables with capitalized, case-sensitive names, but I don't know if any are widely used. But changing _ENV to _env inconvenienced me personally so I'm fixing that one. :)

Additionally, strings often deliberately contain uppercase characters, since they render as "puny font" in Pico-8. Lowercaseificaiton does more harm than good in a string context. If the syntax highlighting engine thinks we're in a string, do not tinker with case.

The special Lua table named _ENV is sometimes used in Pico-8 for various shenanigans. There are other special Lua tables with capitalized, case-sensitive names, but I don't know if any are widely used. But changing _ENV to _env inconvenienced me personally so I'm fixing that one. :)

Additionally, strings often deliberately contain uppercase characters, since they render as "puny font" in Pico-8. Lowercaseificaiton does more harm than good in a string context. If the syntax highlighting engine thinks we're in a string, do not tinker with case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant