Skip to content

detects multi string first instead of normal string, Nested_Lexer #130

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

Conversation

christophkloeffel
Copy link
Contributor

@christophkloeffel christophkloeffel commented Mar 5, 2025

If I understood it correctly, it would make more sense to first detect the multi string.
The startswith('"') method used before does also detect a multi string as normal.

Basically the triple double quoted string version was not taken into account, so it had to be adapted to that.

fixes #129

@christophkloeffel christophkloeffel requested a review from a team as a code owner March 5, 2025 14:59
@christophkloeffel christophkloeffel force-pushed the patch/multiline_markup_string_assertion_error branch from fc355de to 5bcb726 Compare March 5, 2025 15:12
@christophkloeffel christophkloeffel changed the title detects multi string first instead of normal string detects multi string first instead of normal string, Nested_Lexer Mar 5, 2025
@phiwuu phiwuu added the bug fix This pull request is a bug fix label Mar 10, 2025
phiwuu
phiwuu previously approved these changes Mar 12, 2025
@phiwuu
Copy link
Member

phiwuu commented Mar 12, 2025

@christophkloeffel I have approved the pull request, but unfortunately you need to to a rebase first before GitHub can merge it.

@phiwuu phiwuu added the topic: core Affects lexer/parser/infrastructure label Mar 12, 2025
@christophkloeffel christophkloeffel force-pushed the patch/multiline_markup_string_assertion_error branch from 252bc6d to c693a67 Compare March 12, 2025 11:39
@phiwuu
Copy link
Member

phiwuu commented Mar 26, 2025

@christophkloeffel, there are some merge conflicts. Could you please have a look? Thanks!

@christophkloeffel christophkloeffel force-pushed the patch/multiline_markup_string_assertion_error branch from addabcd to 74bd4e0 Compare March 26, 2025 14:19
@christophkloeffel
Copy link
Contributor Author

@christophkloeffel, there are some merge conflicts. Could you please have a look? Thanks!

done

@phiwuu phiwuu merged commit 4d88708 into bmw-software-engineering:main Mar 27, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix This pull request is a bug fix topic: core Affects lexer/parser/infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using Markup_String in triple double quoted string results in AssertionError
2 participants