-
Notifications
You must be signed in to change notification settings - Fork 144
Copilot/vscode1756928566663 #53
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: yaboyshades <[email protected]>
Co-authored-by: yaboyshades <[email protected]>
Co-authored-by: yaboyshades <[email protected]>
…-bdbe-78d4240878a3 Fix multi-line continuation spacing issue in interactive interpreter
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request fixes a spacing issue in the Mangle interpreter's multi-line continuation feature and standardizes quote usage in the documentation configuration. The fix ensures proper spacing is added when concatenating continued lines to prevent parsing issues.
Key changes:
- Added spacing logic to handle multi-line continuation properly in the interpreter
- Added comprehensive tests to verify the continuation fix works correctly
- Standardized single quotes to double quotes in Sphinx configuration
Reviewed Changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| interpreter/interpreter.go | Added spacing logic for multi-line continuation to prevent parsing issues |
| interpreter/interpreter_test.go | Added test cases to verify multi-line continuation functionality |
| readthedocs/conf.py | Standardized quote usage from single to double quotes |
| CONTINUATION_FIX.md | Added documentation explaining the problem and solution |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| // Add appropriate spacing between lines to avoid parsing issues | ||
| if nextLine != "" && !strings.HasSuffix(clauseText, " ") && !strings.HasPrefix(nextLine, " ") { | ||
| clauseText = clauseText + " " + nextLine | ||
| } else { | ||
| clauseText = clauseText + nextLine | ||
| } |
Copilot
AI
Sep 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The closing brace on line 362 appears to be misplaced or extra. The if-else block is properly closed on line 361, making this brace potentially incorrect and likely causing a compilation error.
No description provided.