Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline doc comments are forced to be indented using spaces #120

Open
LoganDark opened this issue Apr 9, 2022 · 0 comments
Open

Multiline doc comments are forced to be indented using spaces #120

LoganDark opened this issue Apr 9, 2022 · 0 comments

Comments

@LoganDark
Copy link

LoganDark commented Apr 9, 2022

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 LoganDark changed the title Multiline doc comments are forced to be intended using spaces Multiline doc comments are forced to be indented using spaces Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant