vimrc file" Desktop Integration:-----------------{{{ " Plugins" ----------------------------{{{ " Graphical Layout:--------------------{{{ " Colorscheme, Highlight groups" ------{{{
The written lines are highlighted as comments/commentLines
9.0 with patch 1-887
gvim 64bits on Windows 10
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
This was discussed before: the double quotes make the text look like a string (which would be valid in Vim9 script, but we don't know in what type of script this is).
Just change those double quotes to colons and it looks OK. Any reason you don't want to do that?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #11560 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
That's because the syntax highlighting sees "..." and interprets that as a string. Get rid of the double quote following the words Plugins and groups so they don't appear to be strings.
—
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.![]()
See #11307, where @dkearns sketched a fix.
I still haven't seen a good reason why that extra double quote was there
Maybe not in the OP's particular example, but there is at least one good reason for this kind of thing: trailing comments, which are a real thing.
call SomeFunc() "Must do this or else XYZ
Obviously one might want to comment out the whole line for a variety of reasons. And if one does, the line ought to be highlighted as a comment.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
That's because the syntax highlighting sees "..." and interprets that as a string. Get rid of the double quote following the words Plugins and groups so they don't appear to be strings.
I find that this highlighting issue turns up all the time and isn't really practical to work around. E.g., in comments with quotes and any commented out code with quotes (strings, patterns etc).
I appear to have some sort of fix for this as I haven't noticed the problem in some time.
It seems that, much as you described, I'm using regions for legacy and compiled functions and testing for "vim9script" when the syntax file is loaded. We could poll for that statement with the appropriate autocommands and then clear and add the appropriate syntax groups?
I'm currently testing a similar strategy in my Vim filetype plugin to change option settings for Vim9 and legacy script regions. It seems to work alright with CursorHold but I wasn't sure if that was too complicated to distribute.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()