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

Remove whitespace within/around compiler directives (bugfix). #58

Merged
merged 2 commits into from
Jul 5, 2022

Conversation

DaveMcEwan
Copy link

Found issue when using the svlint's rule style_indent with `default_nettype none.
The function preprocess() was pushing the space(s) between default_nettype and none plus any whitespace at the end of the line, after pushing the whole directive to ret.
This PR adds a 1b FSM (skip_whitespace) which controls whether WhiteSpace nodes are pushed to ret.

@dalance
Copy link
Owner

dalance commented Jul 5, 2022

LGTM
Thanks!

@dalance dalance merged commit a9bda7f into dalance:master Jul 5, 2022
@DaveMcEwan DaveMcEwan deleted the ppWhitespace branch July 5, 2022 12:59
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

Successfully merging this pull request may close these issues.

2 participants