Configuring Move Token Rules¶
There are rules which will move tokens around to help with the structure of the code.
There are several options to these rules:
Method | Type | Default | Description |
---|---|---|---|
action | string | ‘new_line’ | ‘new_line’ = Token will be moved to the next line. ‘move_left’ = Token will be moved left to the next non whitespace token. |
Note
All examples below are using the rule port_map_004.
Example: ‘new_line’¶
The following code would fail with this option:
U_INST : FIFO
port map (
A => B,
B => C);
The following code would pass with this option:
U_INST : FIFO
port map (
A => B,
B => C
);
Example: ‘move_left’¶
The following code would fail with this option:
U_INST : FIFO
port map (
A => B,
B => C
);
The following code would pass with this option:
U_INST : FIFO
port map (
A => B,
B => C);