Skip to content

Commit

Permalink
remove extra space after signed in scalar types
Browse files Browse the repository at this point in the history
  • Loading branch information
zachjs committed Aug 5, 2024
1 parent 1b27343 commit 4e989bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Language/SystemVerilog/AST/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ instance Show Type where
show (Alias xx rs) = printf "%s%s" xx (showRanges rs)
show (PSAlias ps xx rs) = printf "%s::%s%s" ps xx (showRanges rs)
show (CSAlias ps pm xx rs) = printf "%s#%s::%s%s" ps (showParams pm) xx (showRanges rs)
show (Implicit sg []) = show sg
show (Implicit sg rs) = printf "%s%s" (showPad sg) (dropWhile (== ' ') $ showRanges rs)
show (IntegerVector kw sg rs) = printf "%s%s%s" (show kw) (showPadBefore sg) (showRanges rs)
show (IntegerAtom kw sg ) = printf "%s%s" (show kw) (showPadBefore sg)
Expand Down
2 changes: 2 additions & 0 deletions test/core/interface_input_type.sv.pat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
reject wire signed x;
affirm wire signed x;
2 changes: 2 additions & 0 deletions test/core/param_typeof.sv.pat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
reject parameter signed[15:0] X = 0;
affirm parameter signed [15:0] X = 0;
2 changes: 2 additions & 0 deletions test/core/unbased_unsized.sv.pat
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
affirm ? (* foo *) (* bar *)
reject input wire [W + 1:1] b;
affirm input wire [W + 1:1] b;

0 comments on commit 4e989bc

Please sign in to comment.