Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Units: Add unit tests for null tags #4157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cousteaulecommandant
Copy link
Contributor

(This is related to #4151.)

Add unit tests in various languages (JSON, Tcl, Verilog/SystemVerilog) to test if null tags are properly implemented.

Note that Tcl doesn't support empty namespace names using :: syntax since foo::::bar is synonymous of foo::bar, so we're not testing empty namespace names there, only empty proc names.

Note that the current Tcl parser doesn't seem to support {braced} identifiers at all (including the empty identifier), so perhaps adding support for null tags in Tcl is trickier.
(Maybe I should remove Tcl entirely from the test since it currently doesn't seem to support empty identifiers due to this, and these tests are for testing empty identifiers in general and not a language in particular.)

Add unit tests in various languages (JSON, Tcl, Verilog/SystemVerilog)
to test if null tags are properly implemented.

Note that Tcl doesn't support empty namespace names using `::` syntax
since `foo::::bar` is synonymous of `foo::bar`, so we're not testing
empty namespace names there, only empty proc names.

Note that the current Tcl parser doesn't seem to support
{braced} identifiers at all (including the empty identifier),
so perhaps adding support for null tags in Tcl is trickier.
@cousteaulecommandant
Copy link
Contributor Author

As discussed in #4151, this PR would fail the CI tests (and it indeed did). This is expected.

(On a side note, I need to configure these CI tests so that I don't receive a dozen email notifications every time I push a PR that doesn't pass the tests.)

@masatake
Copy link
Member

Thank you. I will merge/cherry-pick incrementally.

@masatake masatake self-assigned this Dec 24, 2024
masatake added a commit to masatake/ctags that referenced this pull request Jan 1, 2025
The test case is taken from universal-ctags#4157 submitted by Javier Mora.

Co-authored-by: Javier Mora <[email protected]>
Signed-off-by: Masatake YAMATO <[email protected]>
@masatake masatake mentioned this pull request Jan 1, 2025
@masatake masatake added this to the 6.2 milestone Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants