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

Ignore/skip a block of code or a line #45

Open
mangelozzi opened this issue Feb 14, 2023 · 0 comments
Open

Ignore/skip a block of code or a line #45

mangelozzi opened this issue Feb 14, 2023 · 0 comments

Comments

@mangelozzi
Copy link

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
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