We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f903e2 commit 7c6f0daCopy full SHA for 7c6f0da
1 file changed
CodeFormat/src/CodeFormat.cpp
@@ -80,9 +80,15 @@ int main(int argc, char** argv)
80
{
81
options = std::make_shared<LuaCodeStyleOptions>();
82
}
83
+ options->end_of_line = "\n";
84
85
parser->BuildAstWithComment();
86
87
+ if(parser->HasError())
88
+ {
89
+ return -1;
90
+ }
91
+
92
LuaFormatter formatter(parser, *options);
93
formatter.BuildFormattedElement();
94
0 commit comments