othree / yajs.vim

YAJS.vim: Yet Another JavaScript Syntax for Vim
http://www.vim.org/scripts/script.php?script_id=4974
Vim License
688 stars 41 forks source link

Add support for default values for function arguments #94

Closed jaapz closed 8 years ago

jaapz commented 8 years ago

This is valid es6:

    let myFunctionWithDefaults = function(someNormalArgument, 
                                          argumentWithDefaultValue='default') {
         ... function body ...
    }

But the argument with default value is not highlighted for me. Could you add support for this syntax?

othree commented 8 years ago

I think this is already in.

jaapz commented 8 years ago

@othree Well it does not work for me, does it work for you? I have yajs.vim installed through vundle.

othree commented 8 years ago

Maybe conflict with other stuff, or you are not on latest reversion?

jaapz commented 8 years ago

I just checked, and I am on a the latest commit in the master branch. Is there any way I can make sure the yajs.vim syntax file is actually used? Although I'm pretty sure it is.

jaapz commented 8 years ago

I'm sorry, turns out I did have an extra javascript syntax file that was being used instead of yajs...