Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folding support for alternatve function definition syntax #64

Open
sudar opened this issue Feb 5, 2016 · 1 comment
Open

Folding support for alternatve function definition syntax #64

sudar opened this issue Feb 5, 2016 · 1 comment

Comments

@sudar
Copy link

sudar commented Feb 5, 2016

Code folding is supported for normal function definition syntax

function test() {

}

But code folding is not supported for the alternate function definition syntax

    test: function() {

    }

Would it be possible to add support for the second syntax style as well?

@mellery451
Copy link

mellery451 commented Jul 27, 2016

also would be great to have support for folding on anonymous function/callback syntax:

  setup(function(someArg) {
      utils.some_other_setup().call($, function() {
          $.remote.someProp = true;
          someFunc();
      });
  });

..there are two potential folds above, neither of which work right now. That said, we might be hitting the limit of practicality for simple syntax matching regexes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants