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

readtags should be able to read tag files generated for the excmd "combine" #2125

Merged
merged 2 commits into from
Jul 5, 2019

Conversation

clausmoltkeleth
Copy link
Contributor

Currently the reader would discard everything beyond the first semicolon in the search expression. This was unfortunate because when using the 'combine' option the full search expression has the form ;.

For example, listing tag entries named LogReport would produce only:

readtags -e LogReport
LogReport /SccsHome/7.91/libs/LogLib/LogSystem.c 1305

This has been fixed so that readtags now outputs all fields from the tags file:

readtags -e LogReport
LogReport /SccsHome/7.91/libs/LogLib/LogSystem.c 1305;?^int LogReport(enum LR_SeverityE Severity, enum LR_ClassE Class, const char *Id,$?;" kind:f

…d=combine.

Previously the reader would discard everything beyond the first semicolon in the search expression. This was unfortunate because when using the 'combine' option the full search expression has the form <line number>;<search expression>.
@coveralls
Copy link

coveralls commented Jun 28, 2019

Coverage Status

Coverage increased (+0.004%) to 86.002% when pulling 6e445fe on clausmoltkeleth:master into b9bde3d on universal-ctags:master.

@masatake
Copy link
Member

Thank you.
Could you add a test case for the bug?
See Tmain/readtags-*.d directories.
See also http://docs.ctags.io/en/latest/tmain.html

You don't have to touch any Makefiles.

@masatake masatake self-assigned this Jun 29, 2019
@clausmoltkeleth
Copy link
Contributor Author

clausmoltkeleth commented Jul 1, 2019 via email

@clausmoltkeleth
Copy link
Contributor Author

I have now provided two simple test cases. Should I then close the pull request?

@@ -1,8 +1,5 @@
#!/bin/sh

# Copyright: 2016 Masatake YAMATO
# License: GPL-2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add YOUR copyright notice instead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, squash 450c297 and ff70ecf into one comit, and do "git push --force ...".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the copyright notice be that of the company I am working for (CCI Europe) or just me personally?
We are using ctags to be able to easily browse our code using the vim editor.

My suggestion would be something like the below. Please advise, I am new to open source contribution. Thanks in advance!

Copyright: 2019 CCI Europe. Author: Claus Moltke-Leth

License: GPL-2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be up to the relation between your and your company.

Did you write the run.sh as part of your job?
In that case, the copyright notice you showed looks good for me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have included copyright information now. As far as I am concerned, the pull request is complete. Should I close it, or will you do it?

@masatake
Copy link
Member

masatake commented Jul 5, 2019

The test case itself is o.k. Thank you.

@codecov-io
Copy link

Codecov Report

Merging #2125 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2125      +/-   ##
==========================================
+ Coverage   85.86%   85.87%   +<.01%     
==========================================
  Files         173      173              
  Lines       34746    34757      +11     
==========================================
+ Hits        29835    29846      +11     
  Misses       4911     4911
Impacted Files Coverage Δ
read/readtags.c 66.97% <100%> (+0.84%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b9bde3d...6e445fe. Read the comment docs.

@masatake masatake merged commit 20ae3f5 into universal-ctags:master Jul 5, 2019
@masatake
Copy link
Member

masatake commented Jul 5, 2019

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants