IntelliJ-Luanalysis icon indicating copy to clipboard operation
IntelliJ-Luanalysis copied to clipboard

Multiline doc comments are forced to be indented using spaces

Open LoganDark opened this issue 2 years ago • 0 comments

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

image

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?

  1. Make indented doc comment, like this:

    do
    	--- This is a
    	--- multiline
    	--- doc comment.
    	local x = 5
    end
    
  2. Format using whatever keybind (i.e. Cmd+Option+L)

  3. 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

LoganDark avatar Apr 09 '22 09:04 LoganDark