boolangery / py-lua-parser

A Lua parser and AST builder written in Python.
MIT License
117 stars 36 forks source link

Fix Missing Parentheses #36

Closed IAMSPYS closed 1 year ago

IAMSPYS commented 1 year ago

Fix missing parentheses when rendering AST tree to lua source

IAMSPYS commented 1 year ago

It may not be the best way to fix the problem, but it's a good way to ensure that other users won't have to go through headache just to fix the parentheses.

boolangery commented 1 year ago

Yes it's kind of brutal :), added a commit on master that should fix your issue. Please have a look at it and tell me if it resolves your use case. Thanks anyway for this PR :)