MagicStack / MagicStack/MagicPython
`#` in read-only string highlights as a comment
Open
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: VS Code version 1.77
- Platform: Windows
- Color scheme: Any
- MagicPython version: Latest commit from main
- A sreenshot:
- 5-10 lines of surrounding code:
_html = r"""
<!DOCTYPE html>
<html>
<head><meta charset="utf-8"></head>
<body>
<span class="comment"># Python 3</span>
</body>
</html>
"""
Originally from @Wang-Yile in https://github.com/microsoft/vscode/issues/179043
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
The issue provides no repository file, test, or entry point. Start by reproducing the shown Python snippet in VS Code with the reported MagicPython commit, then locate the syntax-highlighting rule responsible for raw triple-quoted strings. Done means the # inside that string no longer receives comment highlighting.
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
- 38/100