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

Dart: Distinguish between punctuation and operators #1838

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

gareththackeray
Copy link
Contributor

All punctuation type characters were being treated as operators, except the first ( in a function signature, which led to different markup on opening versus closing parenthesis. By making all bracket type characters punctuation it will harmonise the formatting.

@gareththackeray
Copy link
Contributor Author

Hi @tancnle would you mind reviewing this PR?

@tancnle tancnle self-assigned this Jun 27, 2022
@tancnle tancnle added the needs-review The PR needs to be reviewed label Jun 27, 2022
@tancnle
Copy link
Collaborator

tancnle commented Jun 27, 2022

@gareththackeray Thanks for the ping. I will look into this sometime today.

lib/rouge/lexers/dart.rb Outdated Show resolved Hide resolved
Copy link
Collaborator

@tancnle tancnle left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @gareththackeray ❤️ I have added a suggestion. Please let me know what you think.

@tancnle tancnle added the author-action The PR has been reviewed but action by the author is needed label Jun 29, 2022
@tancnle
Copy link
Collaborator

tancnle commented Jun 29, 2022

Thank you for the prompt action on this @gareththackeray. Looks great to me 🚀

@tancnle tancnle merged commit fb4555c into rouge-ruby:master Jun 29, 2022
@gareththackeray gareththackeray deleted the dart-punctuation branch June 29, 2022 14:25
razetime pushed a commit to razetime/rouge that referenced this pull request Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author-action The PR has been reviewed but action by the author is needed needs-review The PR needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants