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

[BUG] [LSP] Codeblock after escaping sequences get an unterminated backtick identifier error #3892

Open
martinvuyk opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@martinvuyk
Copy link
Contributor

Bug description

This happens in the nightly branch in StringSlice.strip()

CC: @walter-erquinigo

Steps to reproduce

fn strip(self) -> Self:
    """Return a copy of the string with leading and trailing whitespaces
    removed. This only takes ASCII whitespace into account:
    `" \\t\\n\\v\\f\\r\\x1c\\x1d\\x1e"`.

    Returns:
        A copy of the string with no leading or trailing whitespaces.

    Examples:

    ```mojo
    print("  mojo  ".strip()) # "mojo"
    ```
    .
    """
    return self.lstrip().rstrip()

System information

- Provide version information for Mojo by pasting the output of `mojo -v`
`mojo 25.1.0.dev2024121705`
@martinvuyk martinvuyk added bug Something isn't working mojo-repo Tag all issues with this label labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

1 participant