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

constructor property name breaks highlighting #435

Closed
AndreasMadsen opened this issue Sep 18, 2016 · 1 comment
Closed

constructor property name breaks highlighting #435

AndreasMadsen opened this issue Sep 18, 2016 · 1 comment

Comments

@AndreasMadsen
Copy link

The following code highlights wrong.

const root = new Node({ constructor: { name: 'root' } });
const stateMap = new Map();

skaermbillede 2016-09-18 kl 14 17 36

This appears to be because of the property name constructor, thus it could be related to #425. However I don't think so, because if I use a different keyword like new it highlights fine.

const root = new Node({ new: { name: 'root' } });
const stateMap = new Map();

skaermbillede 2016-09-18 kl 14 19 50

@winstliu
Copy link
Contributor

Closing as a duplicate of #334.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants