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

style_indent Rule doesn't work when new line started after line with comments #249

Open
Mishassio opened this issue May 29, 2023 · 1 comment

Comments

@Mishassio
Copy link

Mishassio commented May 29, 2023

Good case:
1

Bad case:
2

@DaveMcEwan
Copy link
Contributor

Good catch! That's a good motivation for making another style_indent which works on text, rather than syntax after preprocessing, see #247.
That line is probably being treated as a preprocessor comment (see preproc.rs in sv-parser and Clause 22 of the LRM) so might not be visible to the syntax parser.

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

2 participants