Skip to content

Fix quoted with spaces #250

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 2 commits into from
Feb 13, 2023

Conversation

nicolasstucki
Copy link
Contributor

Based on #227

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM Looks like it's working nicely on some macros we had

@nicolasstucki nicolasstucki force-pushed the fix-quoted-with-spaces-2 branch from 15a17db to bb5e498 Compare February 10, 2023 16:27
@nicolasstucki
Copy link
Contributor Author

@tgodzik I had to rebase to fix some conflicts. Could you have a quick look before merging?

'{ 2 }
// ^^ punctuation.section.block.begin.scala
// ^ keyword.control.flow.staging.scala
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, should { have some kind of scope like in imports/exports? (for example we have meta.export.scala meta.export.selector.scala meta.bracket.scala) Or it doesn't really matter since braces are anyway interpreted correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

{ have punctuation.section.block.begin.scala and [ have meta.bracket.scala.

I updated the tests

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

Syntax for quotes and symbols overlap. We can tag these as symbols and
quotes at the same time.
@nicolasstucki nicolasstucki force-pushed the fix-quoted-with-spaces-2 branch from bb5e498 to cd24dc8 Compare February 13, 2023 09:00
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM

@nicolasstucki nicolasstucki merged commit 78750ed into scala:main Feb 13, 2023
@nicolasstucki nicolasstucki deleted the fix-quoted-with-spaces-2 branch February 13, 2023 14:25
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.

3 participants