Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Syntax checker fails to recognize "!" if not at the first character of lines #3507

@tueda

Description

@tueda

Describe the current behavior

The Python syntax checker on Colab recognizes IPython's system command execution (!) if it is at the first character of lines. ! is highlighted in blue colour:

image

This is OK and works well as expected.

But it fails and wrongly gives syntax error markers (red lines) when ! is not at the first character:

image

In addition, only the first ! of !! is highlighted:

image

Describe the expected behavior

All ! (and both ! of !!) in the above examples are expected to be highlighted in blue colour. No syntax error markers should appear.

What web browser you are using

Chrome

Additional context

See https://ipython.readthedocs.io/en/stable/interactive/reference.html#manual-capture-of-command-output-and-magic-output for ! and !! in IPython.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions