Skip to content

optlib: allow users to set fields and check extras defined in a foreign language #3960

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

Merged
merged 9 commits into from
May 11, 2025

Conversation

masatake
Copy link
Member

@masatake masatake commented Mar 14, 2024

In addition, this pull request allows you to fill out a field for a foreign tag from optscript.

  • testing more with broken input

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 92.30769% with 8 lines in your changes missing coverage. Please review.

Project coverage is 85.85%. Comparing base (23c6e36) to head (d87078d).
Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
main/field.c 90.69% 4 Missing ⚠️
optlib/scss.c 0.00% 3 Missing ⚠️
main/options.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3960      +/-   ##
==========================================
+ Coverage   85.84%   85.85%   +0.01%     
==========================================
  Files         244      244              
  Lines       62904    62986      +82     
==========================================
+ Hits        53997    54079      +82     
  Misses       8907     8907              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@masatake masatake marked this pull request as draft March 14, 2024 23:51
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from e14c4e6 to cbdc8c8 Compare March 15, 2024 03:29
@masatake
Copy link
Member Author

The ways to support boolean fields are not consistent in various aspects.

@masatake
Copy link
Member Author

f3246a2 and 1f073fc can be cherry-pick'ed.

@masatake
Copy link
Member Author

We can merge c428bd3 ... 9b3f25f.

d15cc30 needs a test case.

@masatake masatake force-pushed the main--foreign-fields branch from ae46592 to eba8b2e Compare August 30, 2024 14:22
@masatake
Copy link
Member Author

I added test cases. The top half of this pull request can be merged. I will make a pull request.

@masatake masatake force-pushed the main--foreign-fields branch from eba8b2e to c50fcca Compare August 30, 2024 18:37
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from 8f2f83d to 8ea0aa6 Compare January 2, 2025 15:38
@masatake masatake marked this pull request as ready for review January 2, 2025 16:28
@masatake
Copy link
Member Author

masatake commented Jan 2, 2025

This pull request was for a Texinfo parser.
However, this pull request may be useful for SCSS parser, too.

@masatake masatake force-pushed the main--foreign-fields branch from 8ea0aa6 to 7805e78 Compare January 2, 2025 17:12
@masatake masatake added this to the 6.2 milestone Jan 2, 2025
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from 4a62955 to b8b157f Compare January 2, 2025 21:16
@masatake masatake marked this pull request as draft January 22, 2025 16:28
@masatake masatake force-pushed the main--foreign-fields branch 3 times, most recently from a47f1bb to 0d32e66 Compare January 23, 2025 20:49
@masatake masatake marked this pull request as ready for review January 23, 2025 20:50
@masatake masatake force-pushed the main--foreign-fields branch from 0d32e66 to 84bb07f Compare January 24, 2025 00:46
@masatake masatake force-pushed the main--foreign-fields branch from 84bb07f to b478bd4 Compare February 23, 2025 20:41
@masatake masatake force-pushed the main--foreign-fields branch 2 times, most recently from ed95293 to c2124f1 Compare May 11, 2025 00:48
masatake added 4 commits May 12, 2025 00:27
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
=+ does the same as = but doesn't print newline at the end of output.
==+ does the same as == but doesn't print newline at the end of output.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
The name of operators has following form:

	setter => <LANG>.<FIELD>:
	getter => :<LANG>.<FIELD>

The operators for a field are automatically defined only
if the field has a setter and a getter in C language level;
the operators require that the fieldDefinition for the field
has getValueObject method setValueObject method.

Currently, no parser has such methods.  So, we cannot test the new
code added with this commit yet.

In later commits, I will implement the methods for fields defined with
--_fielddef option.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the main--foreign-fields branch 3 times, most recently from 783dc37 to d35fb78 Compare May 11, 2025 17:50
masatake added 5 commits May 12, 2025 03:35
…s defined in an optlib parser

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…efined in optlib

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the main--foreign-fields branch from d35fb78 to d87078d Compare May 11, 2025 18:36
@masatake masatake merged commit 123588e into universal-ctags:master May 11, 2025
82 checks passed
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.

1 participant