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: extract module names used for declaring instances as referen…
…ce tags This one is conceptually based on universal-ctags/ctags@master...my2817:ctags:master reported and written by @my2817 at universal-ctags#3469. The test case is also taken from universal-ctags#3469 submitted by @my2817.
- Loading branch information
1 parent
a5721f6
commit f5334f9
Showing
7 changed files
with
109 additions
and
7 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
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,3 @@ | ||
--sort=no | ||
--extras=+r | ||
--fields=+r |
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 @@ | ||
test input.v /^module test (\/*AUTOARG*\/);$/;" m roles:def | ||
i_a input.v /^ input i_a, i_b;$/;" p module:test roles:def | ||
i_b input.v /^ input i_a, i_b;$/;" p module:test roles:def | ||
o_c input.v /^ output o_c;$/;" p module:test roles:def | ||
int1 input.v /^ ref1 int1 ();$/;" i module:test typeref:module:ref1 roles:def | ||
ref1 input.v /^ ref1 int1 ();$/;" m module:test roles:decl | ||
int2 input.v /^ ref1 int2 ();$/;" i module:test typeref:module:ref1 roles:def | ||
ref1 input.v /^ ref1 int2 ();$/;" m module:test roles:decl | ||
int3 input.v /^ int3 ();$/;" i module:test typeref:module:ref3 roles:def | ||
ref3 input.v /^ ref3 # (.A (aaa),$/;" m module:test roles:decl |
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,12 @@ | ||
// Taken from #3469 submitted by @my2817 | ||
module test (/*AUTOARG*/); | ||
input i_a, i_b; | ||
output o_c; | ||
|
||
ref1 int1 (); | ||
ref1 int2 (); | ||
ref3 # (.A (aaa), | ||
.B (bbb)) | ||
int3 (); | ||
|
||
endmodule // test |
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
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
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