ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
803 stars 54 forks source link

Support for ES6 object literal shorthand #52

Closed danihodovic closed 9 years ago

danihodovic commented 9 years ago

By using the node require along with esnext and browserify, the engine does not recognise this pattern:

var a = 'a'; var b = 'b'; module.exports = { a, b }

but does recognise this

module.exports = { a: a, b: b, }

I'm guessing there needs to be an overhaul for several ES6 features, with this being one of them.

marijnh commented 9 years ago

See https://github.com/marijnh/tern/issues/116