Syntax highlighting issue when @ appears as first character after line continuation when indexing is present
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, python
- Domain
- tooling
Research direction
Reproduce the reported Python snippet in a supported editor, comparing highlighting when the line continuation appears before versus after @ and an indexed expression follows. Trace the syntax-highlighting grammar entry point for line continuations and @ expressions; done means both equivalent forms receive the same highlighting.
Written by the indexing model from the issue text.
Description
-
Editor name and version: VS Code 1.71
-
Platform: Any
-
Color scheme: NA
-
MagicPython version:
-
A sreenshot:
I would expect syntax highlighting to be the same irrespective of whether the line is broken before or after the @ operator.

-
5-10 lines of surrounding code:
# Define variables so pylance doesn't complain.
long_variable_name = other_long_variable_name = 1
long_variable_name \
@ other_long_variable_name['some_index']
long_variable_name @ \
other_long_variable_name['some_index']
Originally from @tillahoffmann in https://github.com/microsoft/vscode/issues/161435
- 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#267 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
MagicStack/MagicPython#265 · 2 comments ·
All issues in MagicStack/MagicPython
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·