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 lexing of jsl messages and nested block comments #1638

Merged
merged 5 commits into from
Dec 5, 2020

Conversation

BenPH
Copy link
Contributor

@BenPH BenPH commented Nov 27, 2020

Some small fixes for the JSL lexer

  • Cover more cases of messages e.g.<<Some Message where they aren't terminated with () or ;
  • Add support for nested block comments
  • Add missing operators ` (transpose) and ^ (exponentiation)
  • Parse decimals starting with . as Nums
    • . by itself is missing and is considered a number as well

@pyrmont pyrmont merged commit 57b4900 into rouge-ruby:master Dec 5, 2020
@pyrmont
Copy link
Contributor

pyrmont commented Dec 5, 2020

@BenPH Thanks for adding this! I've merged it in and it will be part of the next release of Rouge. That's scheduled for Tuesday (or Wednesday depending on your time zone) of next week 👍

mattt pushed a commit to NSHipster/rouge that referenced this pull request May 19, 2021
…ls in JSL lexer (rouge-ruby#1638)

This commit adds support to the JSL lexer for:

- messages that don't end with `(` or `;`;
- nested block comments;
- the missing operators `` ` `` and `^`;
- decimals that start with `.`.
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.

None yet

2 participants