-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments vs. Doc Strings #105
Comments
Just to clarify, you're thinking that the highlighting inside the comment should be different for 'normal' comments vs 'documentation comments' which is indicated by |
Highlighting of the whole comment should be different – The highlighting of keywords inside of comment can be the same, just it needs to be visible. In my example I used EDIT: Goal is to be able to see which comments (as a whole line/block) are the code documentation comments and which comments are just ordinary commentary of the code. |
5 patterns and 3 styles:
|
It would be nice if the highlighting distinguished between regular comments
//
and/* ... */
and comments containing documentation:///
and/** ... */
. The former keeping the form of traditional comments with the later having a different formatting as for "document string". The formatting might be used the same as for strings (would keep visual consistency with languages such as Python). The keywords within the doc strings might have different formatting to stand-out.My knowledge of vim script is limited, but I achieved it with something like this:
The above does not add the
/** ... */
comment.This is how it looks like with the Sunburst theme:
What do you think?
The text was updated successfully, but these errors were encountered: