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

Unwanted space in "default :", should be "default:" #20

Closed
fangism opened this issue Nov 23, 2019 · 2 comments
Closed

Unwanted space in "default :", should be "default:" #20

fangism opened this issue Nov 23, 2019 · 2 comments
Assignees
Labels
formatter Verilog code formatter issues good first issue Good for newcomers

Comments

@fangism
Copy link
Collaborator

fangism commented Nov 23, 2019

The following input:

function f;
case (x)
default :;  // this line, note spacing
endcase
endfunction

should really be formatted to:

function f;
  case (x)
    default: ;  // this line, note spacing
  endcase
endfunction

There are two spacing issues, this one is about spacing between 'default' and ':'.

@fangism fangism added good first issue Good for newcomers formatter Verilog code formatter issues labels Nov 23, 2019
@fangism fangism self-assigned this Nov 23, 2019
@fangism
Copy link
Collaborator Author

fangism commented Nov 23, 2019

b/144874875

@fangism fangism added this to Inter-token (horizontal) spacing in SV formatter Nov 23, 2019
@fangism
Copy link
Collaborator Author

fangism commented Dec 2, 2019

fixed by 8ab6d9b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatter Verilog code formatter issues good first issue Good for newcomers
Projects
SV formatter
Inter-token (horizontal) spacing
Development

No branches or pull requests

1 participant