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
would be great to add some font-lock configuration to have syntax highlight inside jsdoc comments.
Keywords are already known and listed on variables and should not be hard to get regexps from them, the only possible tricky part would be to only apply font-lock o element inside jsdoc comments /** */ as it is going to be used as a minor mode and should not affect other fonts.
Also may need some work coloring arguments or similar stuff that is not a keyword but live in some specific positions, but for a first implementation also simple keyword highlighting would be a really good starting point.
I do not have experience in this field, but I guess some logic may be extracted from js2-mode however it can't be a full copy-paste as I think on js2-mode they are not using font-lock but their specific syntax highlighting engine
The text was updated successfully, but these errors were encountered:
If you use js2-mode, it's already highlighted. Adding font-lock config to js-doc mode will conflict with js2-mode's. It's probably a better idea to add to js-mode instead.
would be great to add some font-lock configuration to have syntax highlight inside jsdoc comments.
Keywords are already known and listed on variables and should not be hard to get regexps from them, the only possible tricky part would be to only apply font-lock o element inside jsdoc comments /** */ as it is going to be used as a minor mode and should not affect other fonts.
Also may need some work coloring arguments or similar stuff that is not a keyword but live in some specific positions, but for a first implementation also simple keyword highlighting would be a really good starting point.
I do not have experience in this field, but I guess some logic may be extracted from js2-mode however it can't be a full copy-paste as I think on js2-mode they are not using font-lock but their specific syntax highlighting engine
The text was updated successfully, but these errors were encountered: