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

Add lexing of rawstring #48

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Add lexing of rawstring #48

merged 1 commit into from
Jan 27, 2025

Conversation

WindSoilder
Copy link
Contributor

As title. This pr is going to make nushell support lexing of rawstring, which have the syntax:

  • r#'<content>'#
  • r##'<content>'##
  • r###'<content>'###
  • etc...

To implement this, just need to move forward to find the ending mark of the raw string.

@kubouch
Copy link
Collaborator

kubouch commented Jan 26, 2025

Thanks! Seems good, it's actually not that difficult to extend the Logos lexer with custom lexing.

@kubouch
Copy link
Collaborator

kubouch commented Jan 27, 2025

(forgot to actually merge it...)

@kubouch kubouch merged commit fca3632 into main Jan 27, 2025
4 checks passed
@kubouch kubouch deleted the raw_string branch January 27, 2025 18:04
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