Closed thany closed 8 years ago
This isn't really possible right now due to the way the extension detects the functions. Currently, every line is checked whether it contains a function. That way, the nesting level is lost unfortunately.
Feel free to submit a PR if you have a better idea though. :wink:
@Hirse What about using Esprima? Using the produced AST may be easier to use, but i don't know how it will perf.
Brackets is built on top of V8, afaik. Couldn't you use just that?
@Florian-R I did finally get around to use Esprima for parsing. :smile: :smile:
Especially for javascript, it would be much nicer to have an indented view, so it's easier to see functions defined inside another function.