Fix macro arguments spacing

This commit is contained in:
dalance 2020-01-22 19:26:00 +09:00
parent 44b2422433
commit 56a13e45c4
2 changed files with 3 additions and 3 deletions

View File

@ -2,6 +2,7 @@
## [Unreleased](https://github.com/dalance/sv-parser/compare/v0.4.19...Unreleased) - ReleaseDate ## [Unreleased](https://github.com/dalance/sv-parser/compare/v0.4.19...Unreleased) - ReleaseDate
* [Fixed] macro arguments spacing
* [Added] `` `__LINE__`` and `` `__FILE__`` are preprocessed * [Added] `` `__LINE__`` and `` `__FILE__`` are preprocessed
* [Fixed] parser priority about specify * [Fixed] parser priority about specify
* [Fixed] escaped_ideitifier including `` ` `` * [Fixed] escaped_ideitifier including `` ` ``

View File

@ -529,7 +529,7 @@ fn resolve_text_macro_usage<T: AsRef<Path>, U: AsRef<Path>>(
for arg in args.contents() { for arg in args.contents() {
if let Some(arg) = arg { if let Some(arg) = arg {
let (ref arg,) = arg.nodes; let (ref arg,) = arg.nodes;
let arg = arg.str(&s); let arg = arg.str(&s).trim_end();
actual_args.push(Some(arg)); actual_args.push(Some(arg));
} else { } else {
actual_args.push(None); actual_args.push(None);
@ -723,8 +723,7 @@ module a ();
always @(posedge clk) begin always @(posedge clk) begin
if (!(!(a[i].b && c[i]))) begin if (!(!(a[i].b && c[i]))) begin
$display ("xxx(()[]]{}}}", a[i].b, c[i]) $display ("xxx(()[]]{}}}", a[i].b, c[i]);
;
end end
end end
; ;