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.
This PR rewrites the
SvelteParser
toHtmlParser
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 theftplugin/vue.vim
and configure it to use thehtml
parser along withjsdoc
, which will now automatically extend the typescriptjsdoc
configuration.This also allows us to easily add support for HTML in the near future.