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.

TypeScript export = syntax not highlighted with inline declarations #30

Description

@wolfy1339

Prerequisites

Description

The export = syntax isn't highlighted

Steps to Reproduce

  1. Create a new TypeScript file
  2. export an inline declaration (an object, a function, a string, etc.) (e.g. export = new Array();)
  3. move that inline assignment to a variable, and export that variable
  4. Note difference in scopes and highlighting

Expected behavior: For the export = to always be highlighted using the proper scopes

Actual behavior: No scopes are added thus the highlighting never happens

Edit by @rsese to add screenshot

export-scope

Reproduces how often: 100%

Versions

You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.

$ atom --version
Atom    : 1.35.0-nightly1
Electron: 2.0.14
Chrome  : 61.0.3163.100
Node    : 8.9.3
$ apm --version
apm  2.1.3
npm  6.2.0
node 8.9.3 x64
atom 1.35.0-nightly1
python 2.7.15
git 2.19.2.windows.1
visual studio 2015

Additional Information

When a variable is exported using this syntax, it gets the scope syntax--keyword syntax--control

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions