Releases: FPtje/GLuaFixer
Releases · FPtje/GLuaFixer
1.16.1
1.16.0
Some cool features this time around
Pretty printer:
- Remember separators in tables when pretty printing (e.g.
{foo, bar; baz}
will keep the;
afterbar
instead of resetting to,
). See #82 - Add newlines after table fields with semicolons. See #82
- Add a
;
after statements when omitting it would cause the syntax to be ambiguous with the next statement. See #82 (comment)
Parser/linter:
- Throw syntax error when there are multiple field separators in a row (e.g.
{foo,,}
). - Warn for
self.Owner
being deprecated. See #79
General
- Add
--test
argument toglualint
, this tries to parse a file with the two available parsers, tries to pretty print it, then re-parse the result. This can be used to find debug problems in the parser and pretty printer of glualint. Most people will not use this option.
1.15.0
1.14.0
1.13.0
1.12.0
New feature: option to dump AST.
Usage:
glualint --dump-ast somefile.lua
When given multiple files or a directory, all ASTs will be dumped.
Little effort was put into making the format understandable. The json generation is almost entirely automatic. It follows the data definition in src/AG/AST.ag
, meaning you'll first get a list of top level comments, then recursively a Block, which is a list of statements and either AReturn <something>
or NoReturn
.
1.11.2
glualint now searches for glualint.json
files from the current working directory when reading from stdin. This is necessary to get continuous linting to work in Sublime text. See FPtje/linter-glualint#15