Skip to content

Conversation

@ratmice
Copy link
Collaborator

@ratmice ratmice commented May 23, 2025

Trying to think about loose ends and what not, I remembered I hadn't updated lrlex for using the %grmtools section, nor updated diagnostics.

So this adds all of that, I'm not certain the grmtools section parsing code is really necessary.
It keeps things in sync with ctbuilder and prepares for the addition of new lexerkinds, without these changes the LexFlags would still be applied just through a different code path, but it wouldn't do things like error out on an unrecognized LexerKind field.

});
}
};
header.mark_used(&"lexerkind".to_string());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Marking as used here, but never doing the check for unused values.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should be fixed in 51b4b97

@ltratt
Copy link
Member

ltratt commented May 23, 2025

Please squash.

@ratmice
Copy link
Collaborator Author

ratmice commented May 23, 2025

Squashed/slightly reworded the commit message.

@ltratt ltratt added this pull request to the merge queue May 24, 2025
Merged via the queue into softdevteam:master with commit 94766cc May 24, 2025
2 checks passed
@ratmice ratmice deleted the update_lrlex branch May 24, 2025 10:27
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