GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — [lua] Support Luau, a gradually typed language based on Lua by matthargett · Pull Request #4066 · pmd/pmd Conversation
|
Generated by 🚫 Danger |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hi and thanks for the contribution!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
You're welcome! I noticed I need to consistently format the grammar with the original coding style. I'll do that today. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Just a heads up that I'm going to be on vacation for 2 weeks. I'll put this PR in draft until I'm back, then fold in the feedback. Thanks!! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ers are used in comments and multiline strings.
…g. Add bugs found via manual testing to new lua test file.
|
Just a few more cleanups, from my perspective, but let me know if there's additional feedback! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…of open source Lua code.
…es. More minor adjustments to make the testing corpus tokenize without errors.
…pear to have mixed formatting.
|
@adangel I'm not sure the build timeout that causes CI to fail is relate to my changes, but I can't re-run the job. Can you review and debug from your side? Thanks! :D |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@adangel I finally won the dice roll with the maven server being overloaded. Would it be possible for this PR to be included in 6.50 release? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@matthargett Thanks for the update! I'll try to review it next week - having it in 6.50.0 shouldn't be a problem. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I'm fixing the remaining parts when I merge your PR.
Note: I'm also fixing are parsing issue around comments, mentioned here (antlr/grammars-v4@ff6ef1e#r84475967). Keep this in mind when updating the grammar back in https://github.com/antlr/grammars-v4/tree/master/lua
One general comment: The grammar now supports both "original" Lua and Luau. This is OK for PMD, where we can be less strict when parsing. But if the upstream grammar is used to verify "original" Lua code and one expects to fail parsing invalid Lua code (but valid Luau), that expectation is now not true anymore. Maybe a separate grammar is better - but it always depends on the use case.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Thanks! I saw that person's comment and was meaning to circle back and debug. It's funny, issues with
Agreed. Here, I tried to see if a superset approach would work across all the OSS-available variants (Lua 5.x, Luau, WoW Lua, and LuaJIT) and strved to ensure they all had representation in the OSS testing corpus (linked in the comment header of the file). It looks like everything works when running CPD across those many repos and 400+KLOC (and my additional private 300+KLOC), but it's feasible that someone (a human, not a fuzzing tool) could write new code that would cause issues. If that happens, I'm happy to split the grammar into whatever discrete pieces are helpful for that new use case. Until then, having a usable duplication checker is an enormous leap forward for teams that are scaling engineer operations around Lua (whatever variant or runtime) -- in either headcount or KLOC dimensions (or both!). Thanks again for the assist! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.