MagicStack / MagicStack/MagicPython
Python modulo operator parsed in a string
Nobody has claimed this yet.
- 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**:

* **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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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