You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The jsdoc format for javascript supports adding types, including writing typescript inside the comment which can be used by the typescript compiler to typecheck js code. Since rainbow-delimiters works for both js and ts already, it would be awesome if it applied in jsdoc as well.
Example comparison with vscode:
Neovim:
Vscode:
The text was updated successfully, but these errors were encountered:
I don't think I can do anything here because the parser does not provide any useful information. Let's take this piece of Javascript code:
/** * A function with delimiters in type comments * * @param {{id: string, friends: {id: string}[]}} data */constgreet_person=({id, friends})=>{returnid}
As you can see everything inside the { and } is one single node, there is no structured information. This plugin relies on Tree-sitter to provide structure information, but I don't have anything to work with here.
Language affected
Javascript
Description
The jsdoc format for javascript supports adding types, including writing typescript inside the comment which can be used by the typescript compiler to typecheck js code. Since rainbow-delimiters works for both js and ts already, it would be awesome if it applied in jsdoc as well.
Example comparison with vscode:
Neovim:
Vscode:
The text was updated successfully, but these errors were encountered: