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
Open
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
The export =
syntax isn't highlighted
Steps to Reproduce
- Create a new TypeScript file
- export an inline declaration (an object, a function, a string, etc.) (e.g.
export = new Array();
) - move that inline assignment to a variable, and export that variable
- 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
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