Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting issue when @ appears as first character after line continuation when indexing is present #253

Open
alexr00 opened this issue Sep 23, 2022 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Sep 23, 2022

  • 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.
    image

  • 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 microsoft/vscode#161435

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant