incorrect parsing of UTF-8 Javascript variable names

Leonard Hecker 8 years ago updated 8 years ago 1
Sublime Text's rules are incorrect and don't work with UTF-8 characters. For instance the rule:
which should "match stuff like: play = function() { … }".
But Javascript allows much more valid characters - see: http://stackoverflow.com/a/9337047

A rule like
is also incorrect, but works much better than the current one.

If I replace those 3
in JavaScript/JavaScript.tmLanguage with
it works again.

The new rule doesn't work with square brackets.


should fix this: http://dl.dropbox.com/u/39569787/JavaScript.tmLanguage