yungsters / sublime

Random files I use with Sublime Text.
18 stars 26 forks source link

Add a workaround to support ES6 concise methods #6

Closed gaearon closed 8 years ago

gaearon commented 10 years ago

ES6 allows a short form of method definition inside an object:

var stuff = {
  someMethod() {
  }
}

This commit attempts to support its most common form without introducing false positives.