Skip to content

Doxygen "after members" syntax not recognized #682

@malsyned

Description

@malsyned

The syntax described in Putting documentation after members is not recognized as Doxygen comments and gets highlighted as ordinary comments.

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

The code with a problem is:

/// @brief description of @c foo
struct foo {
    int bar;  //!< @brief description of @c bar
    int baz;  ///< @brief description of @c baz
    int qux;  /*!< @brief description of @c qux */
    int quux; /**< @brief description of @c quux */
}

It looks like:

Image

It should look like:

Image

Color configuration

    "C_Cpp.enhancedColorization": "disabled",
    "editor.tokenColorCustomizations": {
        "comments": "#999999",
        "keywords": {
            "fontStyle": "bold",
            "foreground": "#6495ed"
        },
        "textMateRules": [
            {
                "scope": "comment.block.documentation",
                "settings": {
                    "fontStyle": "bold"
                }
            },
            {
                "scope": "comment.line.double-slash.documentation",
                "settings": {
                    "fontStyle": "bold"
                }
            },
        ]
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions