Commit 8d6f690
committed
[clang-format] Recognize Verilog followed-by operators
When formatting Verilog code, the program changes the hash to
`kw_verilogHash` and the backtick to `tok::hash`. The developer did not
take that into account when writing the part for recognizing the `#-#`
and `#=#` operators. The part did not work. The program would add a
space within the operator.
after
```SystemVerilog
##[0 : 5] done #-# always !rst;
```
before
```SystemVerilog
##[0 : 5] done #- #always !rst;
```1 parent affed57 commit 8d6f690
File tree
2 files changed
+11
-3
lines changed- clang
- lib/Format
- unittests/Format
2 files changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | | - | |
| 321 | + | |
324 | 322 | | |
325 | 323 | | |
326 | 324 | | |
327 | 325 | | |
328 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
329 | 336 | | |
330 | 337 | | |
331 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2686 | 2686 | | |
2687 | 2687 | | |
2688 | 2688 | | |
| 2689 | + | |
2689 | 2690 | | |
2690 | 2691 | | |
2691 | 2692 | | |
| |||
0 commit comments