verible formatter query about single line to multiline formatting control

62 views
Skip to first unread message

Shaun chua

unread,
May 24, 2023, 4:46:58 PM5/24/23
to Verible Users
Hi Verible Community, 

I have this scenario where a single line got formatted into a multiline. Any suggestions on how can I control the tool to make it format it in a nicer way? Thanks.

Original code:

std::randomize(data_temp[i]) with { data_temp[i] inside {8'h0, 8'hff, 8'haa,8'h55,8'hcc,8'he1};};

Formatted code:
 std::randomize(
          data_temp[i]
      ) with {
        data_temp[i] inside {8'h0, 8'hff, 8'haa, 8'h55, 8'hcc, 8'he1};
      };

David Fang

unread,
May 30, 2023, 12:35:33 AM5/30/23
to Shaun chua, Verible Users
The formatter is far from perfect, so if you need to disable it over ranges of lines, use:

```
// verilog_format: off
// verilog_format: on
```


--
You received this message because you are subscribed to the Google Groups "Verible Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to verible-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/verible-users/ec416cb6-5ba1-4a79-8141-d0367a4c46d4n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Verible Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to verible-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/verible-users/ec416cb6-5ba1-4a79-8141-d0367a4c46d4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages