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

T7246: drop lexer rule ignoring lines beginning with '//' #35

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

jestabro
Copy link
Contributor

Change Summary

The lexer is unnecessarily aggressive in disallowing strings following '//', originally added to ignore version string information. This has the side effect of ignoring legitimate values. Since the version string is now extracted before parsing, this restriction can be dropped.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Other (please describe):

Related Task(s)

Related PR(s)

Proposed changes

How to test

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Sorry, something went wrong.

The lexer is unnecessarily aggressive in disallowing strings following
'//', originally added to ignore version string information. This has
the side effect of ignoring legitimate values. Since the version string
is now extracted before parsing, this restriction can be dropped.
@c-po c-po requested review from a team, dmbaturin, sarthurdev and sever-sever and removed request for a team March 19, 2025 06:24
@jestabro jestabro marked this pull request as ready for review March 20, 2025 14:18
@jestabro jestabro requested a review from a team as a code owner March 20, 2025 14:18
@jestabro jestabro merged commit 94de6d4 into vyos:current Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants