jeff-hykin / better-cpp-syntax

💾 The source of VS Code's C++ syntax highlighting
GNU General Public License v3.0
155 stars 30 forks source link

Support syntax coloring of doxygen comments when direction [dir] attributes are present. #520

Open aschlicht opened 4 years ago

aschlicht commented 4 years ago

I would like doxygen comment syntax coloring to work when the doxygen direction [dir] attributes are present. Notice how the doxygen commented parameters are the same color as the function parameters when [in] and [out] are not present. I'd like to see the same coloring when [in] and [out] are present.

image

Here is a suggestion for how the syntax coloring could look with [in] and [out] as keyword color. (I created it with mspaint.) "in" and "out" could be keyword color, variable / parameter color, or another color. Maybe a configurable color that defaults to keyword color to appease everyone's style preferences? The square brackets [ ] around "in" and "out" should have a non-comment color. I think the style's operator color is a good choice. image

aschlicht commented 4 years ago

https://github.com/bbenoist/vscode-doxygen/issues/6

matter123 commented 4 years ago

Most of this is already supported, please install the extension to receive the latest updates.

I do agree that the punctuation sould have some additional scoping.

Screenshot from 2020-11-12 11-24-38

aschlicht commented 4 years ago

Thank you, @matter123. You are correct. I misunderstood a comment in another issue and I thought this textmate code aided VS Code in doxygen comment syntax coloring. I installed the extension and it works as you show.

matter123 commented 4 years ago

It does, however, due to a different bug the stable version of vscode was on an older version. With that bug fixed, regular vscode should be getting the change on the next major release.

I'm reopening to keep track of the punctuation.