On Thursday, September 17, 2015 at 2:43:46 PM UTC-5, ZyX wrote:
> > Sure, but the region extends past this line on the next line. It's inside a 
> > /* ... */ syntax region. So Vim should be able to know what the syntax 
> > region is.
> 
> No. There are ways to highlight past the end of line (though not with
> :syn). Returning something other then zero means that text past the
> end of line is highlighted according to the given syntax group which
> was defined using :syn. This is not true.
> 

OK I think I understand now. synID() doesn't mean "what syntax region is this 
position inside" it means "what highlighting is actively being drawn at this 
position". Since nothing at all is being drawn at a position past the end of 
the line, synID() correctly returns zero. Sound right?

I'll just stick with my workaround I guess :-)

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to