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

Formatting exceptions #4

Open
vpax opened this issue Mar 15, 2022 · 2 comments
Open

Formatting exceptions #4

vpax opened this issue Mar 15, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@vpax
Copy link

vpax commented Mar 15, 2022

It seems likely that we're going to need some way of flagging "heh zeek-script the following is ok, leave it be". Maybe &sic :-P. I don't have a suggestion for how to do this without the flag itself looking clunky, though.

@vpax vpax added the enhancement New feature or request label Mar 15, 2022
@bbannier
Copy link
Member

clang-format uses magic comments for this.

@ckreibich
Copy link
Member

This is great, yeah. # sic could apply to the thing on the next line when it's a standalone comment, and to the preceding thing when it's tucked on at the end of a line. And a more formal # zeek-format skip|on|off could take care of larger stuff, or those who want to be explicit.

This also foreshadows linting a little bit ... seems to me all linters take some form of comment-based hinting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants