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

fix unicode string parsing #416

Merged
merged 1 commit into from
Apr 27, 2023
Merged

Conversation

OmarTawfik
Copy link
Collaborator

sorted primary expressions to attempt sub-expressions with unique prefixes first, then literals, then identifiers at last. This prevents cases where parser recognizes an identifier at the start of unicode"" literals.

@OmarTawfik OmarTawfik marked this pull request as ready for review April 26, 2023 21:06
@OmarTawfik OmarTawfik requested a review from a team as a code owner April 26, 2023 21:06
Base automatically changed from OmarTawfik/cleanup-release-scripts to main April 27, 2023 06:14
sorted primary expressions to attempt sub-expressions with unique prefixes first, then literals, then identifiers at last. This prevents cases where parser recognizes an identifier at the start of `unicode""` literals.
@OmarTawfik OmarTawfik force-pushed the OmarTawfik/fix-unicode-parsing branch from caea93e to 4fd5867 Compare April 27, 2023 08:56
@OmarTawfik OmarTawfik added this pull request to the merge queue Apr 27, 2023
Merged via the queue into main with commit fb977a5 Apr 27, 2023
@OmarTawfik OmarTawfik deleted the OmarTawfik/fix-unicode-parsing branch April 27, 2023 09:11
This was referenced Apr 27, 2023
OmarTawfik added a commit that referenced this pull request May 4, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @nomicfoundation/slang@0.2.0

### Minor Changes

- [#435](#435)
[`2a5b193`](2a5b193)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support user
defined operators

### Patch Changes

- [#416](#416)
[`fb977a5`](fb977a5)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix primary
expressions parser order

- [#434](#434)
[`beb3708`](beb3708)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix
UnicodeStringLiteral versioning

- [#430](#430)
[`8b7492e`](8b7492e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - update READMEs
with links to packages and user guides.

- [#425](#425)
[`9b49b3d`](9b49b3d)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add user guides
to rust crate and npm packages.

- [#432](#432)
[`1d1a8bb`](1d1a8bb)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix
FunctionCallOptions versioning

## changelog@0.2.0

### Minor Changes

- [#435](#435)
[`2a5b193`](2a5b193)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support user
defined operators

### Patch Changes

- [#416](#416)
[`fb977a5`](fb977a5)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix primary
expressions parser order

- [#434](#434)
[`beb3708`](beb3708)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix
UnicodeStringLiteral versioning

- [#430](#430)
[`8b7492e`](8b7492e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - update READMEs
with links to packages and user guides.

- [#425](#425)
[`9b49b3d`](9b49b3d)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add user guides
to rust crate and npm packages.

- [#432](#432)
[`1d1a8bb`](1d1a8bb)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix
FunctionCallOptions versioning

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: OmarTawfik <15987992+OmarTawfik@users.noreply.github.com>
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