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

Improvements to the Savi lexer #2102

Merged
merged 3 commits into from Apr 4, 2022
Merged

Improvements to the Savi lexer #2102

merged 3 commits into from Apr 4, 2022

Conversation

jemc
Copy link
Contributor

@jemc jemc commented Apr 3, 2022

This PR has several improvements to the Savi lexer:

  • Update Savi language example.
  • Fix Savi highlighting for underscore/private identifiers.
  • Add string interpolation to the Savi lexer.

See individual commits for details.

Each commit is a self-contained unit of change.

jemc added 3 commits April 3, 2022 12:21
The previous example shows the old usage of the testing framework.
Now the example reflects the current usage/API of that framework.
Prior to this change, every underscore/private identifier
in Savi code was being highlighted as if it were a class name.
After this change, only those whose first letter is uppercase
will be highlighted as such, which is the correct behavior.
Now the Savi lexer can tokenize string interpolation inside strings,
which is a new feature added to Savi since the last time this
lexer was updated.
@jeanas jeanas merged commit d7fda4e into pygments:master Apr 4, 2022
@jeanas
Copy link
Contributor

jeanas commented Apr 4, 2022

Thanks!

@jemc jemc deleted the fix/savi branch April 4, 2022 16:23
@jeanas jeanas added this to the 2.12.0 milestone May 20, 2022
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