These are special names by convention, and giving them distinct highlighting is a nice visual cue (using Identifier by default).
This group is named 'pythonClassVar' to match the name used by python-syntax. Some third-party color schemes are aware of this name and customized their colors accordingly.
https://github.com/vim/vim/pull/17968
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@zvezdan as discussed, I chose the simplest approach that still allows users to re-link or clear this new highlight group.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@zvezdan commented on this pull request.
Looks good.
I would just make a location change in the file and add a small comment.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@zvezdan commented on this pull request.
Looks good.
I would just make a location change and add a comment.
> @@ -105,6 +105,7 @@ syn keyword pythonOperator and in is not or syn keyword pythonException except finally raise try syn keyword pythonInclude from import syn keyword pythonAsync async await +syn keyword pythonClassVar self cls
I wouldn't put them in this group of real keywords because they wouldn't be in the output of the command above in the comment (line 95).
Perhaps moving them below soft keywords with an appropriate comment that they are de facto convention, rather than the real keywords. After all, we could call them Bob and Fred and the result would be the same. We don't do that because it's not a convention and wouldn't be nice to the code maintainers. 🙂
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@jparise pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@jparise commented on this pull request.
> @@ -105,6 +105,7 @@ syn keyword pythonOperator and in is not or syn keyword pythonException except finally raise try syn keyword pythonInclude from import syn keyword pythonAsync async await +syn keyword pythonClassVar self cls
Good idea. I relocated them with a comment in the latest commit (b9e5404).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@zvezdan approved this pull request.
Looks good.
Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.