kkoomen / vim-doge

(Do)cumentation (Ge)nerator for nearly 20 languages 📚 Generate proper code documentation with a single keypress. ⚡️🔥
GNU General Public License v3.0
1.01k stars 51 forks source link

Use HtmlParser rather than SvelteParser #631

Closed kkoomen closed 1 year ago

kkoomen commented 1 year ago

This PR rewrites the SvelteParser to HtmlParser because if in the future we want to implement other JS frameworks, like Vue, that also use HTML structures containing <script> elements, then we don't need to implement another parser for that language. We can simply add the ftplugin/vue.vim and configure it to use the html parser along with jsdoc, which will now automatically extend the typescript jsdoc configuration.

This also allows us to easily add support for HTML in the near future.