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

luacheck doesn't allow non-ascii symbols in unquoted strings #30

Open
ligurio opened this issue Oct 8, 2021 · 1 comment
Open

luacheck doesn't allow non-ascii symbols in unquoted strings #30

ligurio opened this issue Oct 8, 2021 · 1 comment

Comments

@ligurio
Copy link

ligurio commented Oct 8, 2021

non-ascii symbols in Привет = 1 triggers error in luacheck:

Checking r.lua                                    1 error

    r.lua:1:1: expected statement near 'П'

Total: 0 warnings / 1 error in 1 file

To workaround one can use quotes: ['Привет'] = 1.

Luacheck: 0.23.0
Lua: LuaJIT 2.1.0-beta3
Argparse: 0.6.0

Clone of mpeterv#207

@alerque
Copy link
Member

alerque commented Oct 8, 2021

Thanks for moving this issue over.

Just to add to this from the previous thread, in my findings none of the mainline Lua releases support this,s but LuaJIT does. It would be nice to find documentation on exactly which versions support this, and what the rules/limitations for it are. Any support in luacheck would have to take that info into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants