-
Notifications
You must be signed in to change notification settings - Fork 6
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
Make formatter compatible with 5.1 code #15
Make formatter compatible with 5.1 code #15
Conversation
Pull request accepted. There is still grammar for hex numbers (which was introduced in 5.2). But I don't see how it may cause practical problems. (Special thanks for removing new operators (which I forgot to mention in #13) and for changing comments correspondingly.) |
According to https://www.lua.org/manual/5.1/manual.html part 2.1, hex numbers are already supported in 5.1, but maybe I overlooked something? |
Yes, you're right. I've quick-checked this wrong:
instead of
And also in 5.2 was added binary exponent part:
|
For the last few years we have been using the wrong branch as the one we were on did not permit the use of `goto` as an identifier and "labels" as targets for such `goto`s as version of Lua after 5.1 forbode that as it became a command to uncontrollably jump around Lua scripts as it does in the C (or BASIC) programming languages! This change will pull in changes that @keneanung did to the lfc submodule as: * martin-eden/lua_code_formatter#15 * martin-eden/lua_code_formatter#16 but we had forgotten to use. This will close Mudlet#5997. Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
For the last few years we have been using the wrong branch as the one we were on did not permit the use of `goto` as an identifier and "labels" as targets for such `goto`s as version of Lua after 5.1 forbade that as it became a command to uncontrollably jump around Lua scripts as it does in the C (or BASIC) programming languages! This change will pull in changes that @keneanung did to the lfc submodule as: * martin-eden/lua_code_formatter#15 * martin-eden/lua_code_formatter#16 but we had forgotten to use. This will close #5997. Also add some of the `./github/` sub-directory files, to the qmake project file - so they show up in the QtCreator editor...! There are further changes needed to the QMake `OTHER_FILES`, `INSTALLS` and `DISTFILES` variables but they should be left to a further, separate PR. Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
Resolves #14