Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Using a variable as a default in a function definition causes inconsistent highlighting #278

@TheElementalOfDestruction

Description

Prerequisites

Description

Using a variable as a default in a function definition causes inconsistent highlighting of variable name. Specifically, the first letter or the variable will not be highlighted.

Steps to Reproduce

  1. Open new file
  2. Set language to Python
  3. Enter def test(test_var = variable):

Expected behavior: variable should be highlighted completely.

Actual behavior: ariable is highlighted while v is not.

Reproduces how often: 100%

Versions

Windows 10
C:\WINDOWS\system32>atom --version

Atom : 1.31.1
Electron: 2.0.7
Chrome : 61.0.3163.100
Node : 8.9.3

C:\WINDOWS\system32>apm --version
apm 2.1.1
npm 6.2.0
node 8.9.3 x64
atom 1.31.1
python 3.6.4
git 2.17.0
visual studio

Additional Information

None

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