atom / symbols-view

Jump to symbols in Atom
MIT License
163 stars 115 forks source link

Add support for top-level Jasmine functions in JavaScript #227

Closed jasonrudolph closed 7 years ago

jasonrudolph commented 7 years ago

We already support Jasmine functions for CoffeeScript. With the changes in this pull request, we bring that same support to JavaScript.

Specifically, symbols-view will identify the following items as functions:

Demo

We can try this out inside symbol-views very own specs. (So meta.) Let's start by editing spec/symbols-view-spec.js in Atom:

screenshot

Before the changes in this PR, the symbols view only identifies a single function:

screenshot

After the changes in this PR, the symbols view kindly identifies Jasmine components:

screenshot