Skip to content

Add support for highlighting typedoc/jsdoc comments #49

Closed
@lddubeau

Description

@lddubeau

Having proper highlighting of typedoc/jsdoc comments, besides providing visual help, would allow skipping things that don't need spell-checking when using flyspell-prog-mode.

For instance, in the following:

/**
 * @param {SomeType} blah something
 */

The only thing that needs spell checking is "something". The rest is either a typedoc/jsdoc tag (@param), a type reference (SomeType) or a parameter name (blah). Flyspell determines whether a piece of text should be spell-checked by seeing whether it has any of the faces in flyspell-prog-text-faces. Right now typescript-mode assigns font-lock-comment-face to the whole comment and thus everything is subject to spell checking.

As usual, js-mode has no support for this, whereas js2-mode distinguishes the various parts appropriately.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions