Skip to content

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
Contributor

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
Contributor

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.

3 participants