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
Support for Lua language #1931
Comments
|
There is actually already a tree-sitter grammar for LUA: https://github.com/Azganoth/tree-sitter-lua |
|
I did a lot of work on this: https://github.com/Ruin0x11/semgrep/tree/lua At this stage it can parse Lua source code to the generic AST format. Blocked by #2280 and Azganoth/tree-sitter-lua#7. There are also still some other parse errors caused by |
|
@DrewDennison we should add Lua and C# on https://dashboard.semgrep.dev/languages |
|
will do. Note that there are some metrics already https://dashboard.semgrep.dev/metric/semgrep.core.c-sharp.parse.pct https://dashboard.semgrep.dev/metric/semgrep.core.tests.lua.unit-test.num |
|
Ok we're getting really close to get Lua support in semgrep! |
|
Hopefully we can release in the next version of semgrep next week (0.37) |
|
Good news we are also at 99.9% parsing success rate with tree-sitter-lua: https://dashboard.semgrep.dev/metric/semgrep.core.lua.parse.pct |
Is your feature request related to a problem? Please describe.
Add support for the Lua language.
Additional context
Lua is used in a wide variety of contexts including many video games, business logic software, and within notable open-source software such as Apache, MediaWiki, Redis, VLC and Wireshark.
There is currently one popular static analysis tool for Lua, luacheck. However it is not as powerful or extensible as semgrep.
As a relatively small language with a relatively simple syntax, hopefully it wouldn't be tremendously difficult to support!
The text was updated successfully, but these errors were encountered: