IntelliJ-Luanalysis
IntelliJ-Luanalysis copied to clipboard
Multiline doc comments are forced to be indented using spaces
Environment
Name | Version |
---|---|
IDEA version | IntelliJ IDEA Ultimate 2021.2.3 |
Luanalysis version | 1.3.0 |
OS | Windows 10 2004 build 19041.928 x86_64 |
Preferences
Lua
Name | Setting |
---|---|
Language level | Lua 5.3 |
Type Safety
Name | Setting |
---|---|
Strict nil checks | ❎ |
Unknown type (any) is indexable | ☑️ |
Unknown type (any) is callabale | ☑️ |
What are the steps to reproduce this issue?
-
Make indented doc comment, like this:
do --- This is a --- multiline --- doc comment. local x = 5 end
-
Format using whatever keybind (i.e. Cmd+Option+L)
-
it gets changed to use spaces instead
do --- This is a --- multiline --- doc comment. local x = 5 end
(yes, this is exactly what happens, the first line being indented correctly and the subsequent lines being forced to use spaces)
What happens?
see above
What were you expecting to happen?
I would expect the indentation to use tabs if I have it configured to do so
Any logs, error output, etc?
Nope
Any other comments?
Nope