Giter Site home page Giter Site logo

Comments (10)

heavenshell avatar heavenshell commented on May 13, 2024

Currently arrow function does not work.

If you can't wait my update, patches are very welcome.

from vim-jsdoc.

csaroff avatar csaroff commented on May 13, 2024

Okay, thank you heavenshell. I'll take a look at it this weekend, but I'm not sure that I'll have time to commit a patch. I just wanted to add feature request, but I didn't know how to add the enhancement label. Thanks for all of your work. You're a hero!

from vim-jsdoc.

heavenshell avatar heavenshell commented on May 13, 2024

@csaroff
Try https://github.com/heavenshell/vim-jsdoc/tree/feature_arrow_function branch.

let g:jsdoc_enable_es6 = 1
/**
 * foo
 *
 * @param {number} arg1
 * @param {number} arg2
 * @return {undefined}
 */       
const foo = (arg1, arg2) => true;

/**
 * f
 *
 * @param {number} arg1
 * @return {undefined}
 */       
const f = arg1 => true;

I'm not familar to ES6. So please send me feed back if you have any problem.

from vim-jsdoc.

jacoborus avatar jacoborus commented on May 13, 2024

New branch works perfect for me

from vim-jsdoc.

heavenshell avatar heavenshell commented on May 13, 2024

Thanks. πŸ‘

from vim-jsdoc.

heavenshell avatar heavenshell commented on May 13, 2024

Note
From ver 0.5.0, g:jsdoc_allow_shorthand will be deprecated.
Use let g:jsdoc_enable_es6 == 1 instead.

from vim-jsdoc.

csaroff avatar csaroff commented on May 13, 2024

Looks awesome man. Thank you sooo much!

from vim-jsdoc.

heavenshell avatar heavenshell commented on May 13, 2024

@csaroff
Thx, I'll merge to master.

from vim-jsdoc.

heavenshell avatar heavenshell commented on May 13, 2024

Merged.

from vim-jsdoc.

jacoborus avatar jacoborus commented on May 13, 2024

I just realized that this feature breaks shorthand methods option. I opened #38

from vim-jsdoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.