Open henriquegemignani opened 6 years ago
If the file uses CRLF as line endings, the lua-fmt gives this formatting:
CRLF
pluralization[f4] = words( [[ az bm bo dz fa hu id ig ii ja jv ka kde kea km kn ko lo ms my root sah ses sg th to tr vi wo yo zh ]] )
When the file uses LF, the output is as follows:
pluralization[f4] = words([[ az bm bo dz fa hu id ig ii ja jv ka kde kea km kn ko lo ms my root sah ses sg th to tr vi wo yo zh ]])
Obs: renaming words to wordsss, the output is then consistent no matter the line endings:
words
wordsss
pluralization[f4] = wordsss( [[ az bm bo dz fa hu id ig ii ja jv ka kde kea km kn ko lo ms my root sah ses sg th to tr vi wo yo zh ]] )
Running lua-fmt via vscode-lua 0.12.4
CLLF? Do you mean CRLF?
First hunch is line length checking... at first glance it doesn't seem easy to fix without a performance impact (or breaking files with mixed line endings)
Yeah, CRLF sorry.
If the file uses
CRLF
as line endings, the lua-fmt gives this formatting:When the file uses LF, the output is as follows:
Obs: renaming
words
towordsss
, the output is then consistent no matter the line endings:Running lua-fmt via vscode-lua 0.12.4