lua-fmt
lua-fmt copied to clipboard
Ignore/skip a block of code or a line
The python formatter black, has # fmt: on and # fmt: off tags to tell it to not format certain chunks of code, and fmt: skip to skip a specific line.
Would be great if lua-fmt also provided a way to ignore chunks of code, with something like say:
-- Fon't Format this block of code:
-- fmt: off
local a = 1;
local b = 2;
-- fmt: on
-- This line would be formatted:
local c = 3
-- Don't Format this line:
local d = 4; -- fmt: skip