`stylua: ignore` comment not respected in table
I have a table that is a list of command line arguments, and I would like flags and their values to be on the same line so that it is more readable.
```lua
local args = {
"--foo", "foo",
"--bar", "bar",
"pos1",
"pos2",
}
```
Understandably, `stylua` formats this with each item on its own line:
```lua
local args = {
"--foo",
"foo",
"--bar",
"bar",
"pos1",
"pos2",
}
```
So, I add `-- stylua: ignore start` and `-- stylua: ignore end`:
```lua
local args = {
-- stylua: ignore start
"--foo", "foo",
"--bar", "bar",
"pos1",
"pos2",
-- stylua: ignore end
}
```
But it messes up the formatting:
```lua
local args = {
-- stylua: ignore start
"--foo",
"foo",
"--bar",
"bar",
"pos1",
"pos2",
-- stylua: ignore end
}
```
The expected behavior is to not touch anything from the `-- stylua: ignore start` and the newline after `--stylua: ignore end`.
0 条评论