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

Disable Parinfer for certain expressions #6

Open
oakmac opened this issue Nov 6, 2015 · 1 comment
Open

Disable Parinfer for certain expressions #6

oakmac opened this issue Nov 6, 2015 · 1 comment

Comments

@oakmac
Copy link
Owner

oakmac commented Nov 6, 2015

Similar in spirit to Issue #5, it would be nice to disable Parinfer for certain expressions in a file. A sentinel code comment could flag an expression as "do not apply Parinfer inside this expression".

Probably limit this to just parent expressions, or expressions that start at column 0.

@oakmac
Copy link
Owner Author

oakmac commented Nov 14, 2015

After giving this some thought, I think this should be done using sentinel comment flags for the start and end of an ignore section.

There is a lot of unnecessary complexity in trying to tag a single expression as "ignore". Start and end flags are simple to understand and simple to parse. Also they allow you to flag large sections of your code as "ignore".

How about:

;; ~~parinfer ignore:start
<code here will be ignored by Parinfer>
;; ~~parinfer ignore:end

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