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

Move pragma-specific keywords under dedicated topic #661

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

Xanewok
Copy link
Contributor

@Xanewok Xanewok commented Nov 16, 2023

Split from #650

We talked about this recently at our stand-up.

These are never reserved in the default context and are only used in the (lexical) context of pragmas, so let's reflect that in the spec.

Not updating v1 in this context since #650 is about to obsolete that and v0 does not have lexical contexts that might be impacted.

@Xanewok Xanewok requested a review from a team as a code owner November 16, 2023 14:32
Copy link

changeset-bot bot commented Nov 16, 2023

⚠️ No Changeset found

Latest commit: b2473b1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Keyword(
name = SolidityKeyword,
identifier = Identifier,
definitions = [KeywordDefinition(value = Atom("solidity"))]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this would also need creating a PragmaIdentifier as well for reservation, but I'm happy to tackle this separately after the migration is done. Will add a note for myself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't think there are any identifiers in pragmas, but we can separate that for clarity.

Copy link
Contributor

Choose a reason for hiding this comment

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

There is an Identifier in ExperimentalFeature. Having a dedicated PragmaIdentifier will also force us to think about how the other three keywords affect the reservation of the original Identifier .. But I'm happy to tackle this after the migration, and add some integration tests for it with solc.

@Xanewok Xanewok added this pull request to the merge queue Nov 20, 2023
Merged via the queue into NomicFoundation:main with commit bdff92b Nov 20, 2023
1 check passed
@Xanewok Xanewok deleted the pragma-specific-keywords branch November 20, 2023 19:31
@Xanewok
Copy link
Contributor Author

Xanewok commented Nov 20, 2023 via email

OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Feb 21, 2024
OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Feb 21, 2024
OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Feb 22, 2024
OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Feb 22, 2024
github-merge-queue bot pushed a commit that referenced this pull request Feb 22, 2024
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