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

Option to use semicolons as delimiters in multi-line table literals #31

Open
evaera opened this issue Oct 8, 2018 · 0 comments
Open

Comments

@evaera
Copy link

evaera commented Oct 8, 2018

I use vscode-lua's format option, which uses this library. I'd like to have the option to use semicolons as delimiters at the end of every line within the literal instead of commas, but only for literals that encompass more than one line.

Current format behavior:

local t = {
  V1 = "Value 1",
  V2 = "Value 2",
  V3 = "Value 3"
}

Requested behavior:
(Note the semicolon on the last line)

local t = {
  V1 = "Value 1";
  V2 = "Value 2";
  V3 = "Value 3";
}

Would really appreciate seeing this and a vscode-lua setting to accompany it. Thanks

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