You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The form feed (\f/^L) and vertical tab (\v/^K) characters are parsed as whitespace and do not cause unexpect-symbol syntax errors. This is consistent with PUC-Rio Lua as well as Luajit.
Form feed characters in particular also should not be removed by the code formatter and should ideally be indented to the beginning of the line. This way they can be used to delimit sections in Vim and Emacs.
Actual Behaviour
Form feed and vertical tab characters outside of comments cause unexpect-symbol syntax errors. They are removed from the ends of lines when formatting, both in code and in comments.
How are you using the lua-language-server?
NeoVim
Which OS are you using?
Linux
What is the issue affecting?
Diagnostics/Syntax Checking, Formatting
Expected Behaviour
The form feed (
\f
/^L
) and vertical tab (\v
/^K
) characters are parsed as whitespace and do not causeunexpect-symbol
syntax errors. This is consistent with PUC-Rio Lua as well as Luajit.Form feed characters in particular also should not be removed by the code formatter and should ideally be indented to the beginning of the line. This way they can be used to delimit sections in Vim and Emacs.
Actual Behaviour
Form feed and vertical tab characters outside of comments cause
unexpect-symbol
syntax errors. They are removed from the ends of lines when formatting, both in code and in comments.Reproduction steps
^L
or^K
.^L
and^K
at the end of a line are removed.Additional Notes
From the Lua 5.1 Reference Manual Section 5.4.1:
From
man 3 isspace
:Log File
No response
The text was updated successfully, but these errors were encountered: