MagicStack / MagicStack/MagicPython

Python modulo operator parsed in a string

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.4k
Forks
98
PR merge metrics
No merged PRs in 30d

Description

* **Editor name and version**: Visual Studio Code 1.86.2
* **Platform**: macOS
* **Color scheme**:
* **MagicPython version**: https://github.com/microsoft/vscode/pull/164191
* **A sreenshot**:
![PixelSnap 2024-02-21 at 22 47 26@2x](https://github.com/MagicStack/MagicPython/assets/2276355/cb1f8e6f-5fb1-4497-9b93-e246d2a50971)

* **5-10 lines of surrounding code**:
```
print('10 % over')
print("10 % over")
print("""10 % over""")

print('10 % 2')
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the supplied Python reproducer and trace the syntax-highlighting entry point for string contents. Confirm how `%` is classified in single-, double-, and triple-quoted strings, then verify that the modulo operator remains highlighted correctly outside strings without being treated as code inside them.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.