Skip to content

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

Description

@alexr00
  • 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions