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

Parse unescaped triple quotes from a string within triple quotes #1145

Open
hellovai opened this issue Nov 5, 2024 · 0 comments
Open

Parse unescaped triple quotes from a string within triple quotes #1145

hellovai opened this issue Nov 5, 2024 · 0 comments

Comments

@hellovai
Copy link
Contributor

hellovai commented Nov 5, 2024

// Test case for unescaped single quotes in triple quotes
// TODO: THIS PARSES INCORRECTLY! Rare case, but should be fixed
// if a customer complains about it.
test_deserializer!(
    unescaped_single_quotes_in_triple_quotes,
    BAML_FILE,
    r#"
    {
      "type": "code",
      "code": """print("""Hello, world!""")"""
    }
    "#,
    FieldType::class("Test"),
    {
      "type": "code",
      "code": "print("
    }
);
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

No branches or pull requests

1 participant