Incorrect function highlighting in raw format (rf) string
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, python
- Domain
- tooling
Research direction
Start by reproducing the supplied raw-format string in the supported editor and compare highlighting of the dot, (1), and curly braces. Trace the syntax-highlighting behavior for this example; done means those portions are highlighted consistently with the surrounding Python expression.
Written by the indexing model from the issue text.
Description
I'm getting some incorrect highlighting inside an rf string, in particular for the . and (1) portions, as well as the curly braces. Take a look:
- Editor name and version: VSCode
- Platform: Windows
- Color scheme: Default
- MagicPython version: v1.1.0
- A sreenshot:
- 5-10 lines of surrounding code:
for item in (
re.split(rf" ?\r <BR> (?=\d+{match.group(1)})", text)
if (match := re.match(r"1( ?[-.])", text)) is not None
else [text]
):
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
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.
More from MagicStack/MagicPython
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
MagicStack/MagicPython#275 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
MagicStack/MagicPython#273 · 7 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
MagicStack/MagicPython#269 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
MagicStack/MagicPython#265 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
MagicStack/MagicPython#263 ·
All issues in MagicStack/MagicPython
Similar issues
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
DavidAnson/markdownlint-cli2#940 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Difficulty 2/5 1-3 hours Newbie friendliness 90/100