Skip to content

Version 2.1

Choose a tag to compare

@ReFreezed ReFreezed released this 03 Sep 15:38
· 19 commits to master since this release

Changes

  • Added functions: parseExpression(), valueToAst(), validateTree(), isExpression(), newNodeFast().
  • Added AST node fields: AstNode.pretty, AstNode.prefix, AstNode.suffix.
  • tokenize(): Added option to keep whitespace tokens (which is a new token type).
  • toLua(): Added nodeCallback argument.
  • toLua(): Outputting less parentheses around some binary expressions.
  • toLua(): Fixed invalid output of immediately invoked function expressions and similar expressions.
  • toLua(): Fixed "." not always being always being considered when inserting spaces (e.g. for x .. ...).
  • TableField.key is now optional if TableField.generatedKey is true.
  • Fixed _ENV getting minified in Lua 5.2+.
  • Fixed parsing error for chunks ending in return statements without values.