Skip to content

Using 'then' or 'do' in string literals incorrectly causes indentation  #2766

Closed
@jnwhiteh

Description

@jnwhiteh

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

MacOS

What is the issue affecting?

Formatting

Expected Behaviour

local f = "We go to the house and then we go home"
print(f)

Actual Behaviour

local f = "We go to the house and then we go home"
    print(f)

Reproduction steps

Open a new file. Utilize a string literal in a statement that contains either "then" or "do" and then move to the next line or use the Reindent command.

Additional Notes

No response

Log File

file_Users_jimw_tmp.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions