Skip to content

Lexer: Backslash not supported in import or export statements #4874

@eugenet8k

Description

@eugenet8k

This works:

import my_module from 'my/path/nodule'

This doesn't work:

import my_module
  from 'my/path/nodule'
[stdin]:2:1: error: unexpected indentation
  from 'my/path/nodule'

This doesn't work as well:

import my_module \
  from 'my/path/nodule'
[stdin]:1:8: error: unexpected implicit function call
import my_module \
       ^^^^^^^^^

As a result, there is no way to wrap long imports into few lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions