forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
verilog: skip compiler directives in enum definition (universal-ctags…
…#4056) Signed-off-by: Hiroo HAYASHI <[email protected]>
- Loading branch information
Showing
4 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--sort=no |
4 changes: 4 additions & 0 deletions
4
Units/parser-verilog.r/systemverilog-github4056.d/expected.tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
my_enum input.sv /^} my_enum;$/;" T | ||
OTHER_VAL1 input.sv /^ OTHER_VAL1,$/;" c typedef:my_enum | ||
OTHER_VAL2 input.sv /^ OTHER_VAL2$/;" c typedef:my_enum | ||
e input.sv /^my_enum e;$/;" r |
10 changes: 10 additions & 0 deletions
10
Units/parser-verilog.r/systemverilog-github4056.d/input.sv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// https://github.com/universal-ctags/ctags/issues/4056 | ||
|
||
typedef enum { | ||
`include "test1.txt" | ||
OTHER_VAL1, | ||
`include "test2.txt" | ||
OTHER_VAL2 | ||
} my_enum; | ||
|
||
my_enum e; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters