3 ms·
Tern works perfectly well with sweet.js. It uses loose parsing so it basically just ignores the areas that it can't understand. For the most part, you still ge
by jlongster 12y ago
Tern works perfectly well with sweet.js. It uses loose parsing so it basically just ignores the areas that it can't understand.
For the most part, you still get all the info you used to have. Generally you don't use macros that are overly aggressive in modifying scope, or changing the basic rules of JS that tern looks for.
You will not get autocompleting on expressions that expand with macros, no. But you could easily add a plugin to tern that tells it the rules for that syntax if you really wanted to.