Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't lowercase _ENV or strings. #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant