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

Lex parser #3175

Merged
merged 3 commits into from
Oct 19, 2021
Merged

Lex parser #3175

merged 3 commits into from
Oct 19, 2021

Conversation

masatake
Copy link
Member

No description provided.

@masatake masatake force-pushed the lex-parser branch 2 times, most recently from edba3bd to 8afbcd5 Compare October 16, 2021 21:58
@masatake
Copy link
Member Author

@hirooih, your win32 target works perfectly when adding this parser. Thank you very much.

@codecov
Copy link

codecov bot commented Oct 16, 2021

Codecov Report

Merging #3175 (f5bca49) into master (e7326d7) will decrease coverage by 0.07%.
The diff coverage is 20.37%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3175      +/-   ##
==========================================
- Coverage   84.90%   84.83%   -0.08%     
==========================================
  Files         200      201       +1     
  Lines       47912    47966      +54     
==========================================
+ Hits        40680    40691      +11     
- Misses       7232     7275      +43     
Impacted Files Coverage Δ
optlib/lex.c 0.00% <0.00%> (ø)
main/options.c 83.75% <100.00%> (+0.01%) ⬆️
main/selectors.c 79.79% <100.00%> (+0.85%) ⬆️
parsers/lisp.c 89.38% <100.00%> (+0.11%) ⬆️

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 e7326d7...f5bca49. Read the comment docs.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…a select to optlib parser

LEX parser, a parser in development, has .l in its map.  It conflicts
with Lisp parser that has also .l in its map.

A selector is needed for arbitration.

As a temporarily solution, this change introduces --__selector-<LANG>=
option to optlib2.  optlib2c sets the C language function name
specified with the option to the selectLanguage member of the Parser
structure.

In addition, this change introduces a new convention; ctags ignores
an argument started with '--__'. optlib2c may handle the argument.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@hirooih
Copy link
Contributor

hirooih commented Oct 17, 2021

@hirooih, your win32 target works perfectly when adding this parser. Thank you very much.

I'm glad to hear that!

Both LEX and Lisp use .l as their file extensions.  A newly inroduced
funtion, selectLispOrLEXByLEXMarker() for selecting proper language.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake merged commit df3e2f5 into universal-ctags:master Oct 19, 2021
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.

2 participants