2015-09-17 21:42 GMT+03:00 Ben Fritz <[email protected]>: > On Thursday, September 17, 2015 at 12:01:52 PM UTC-5, Tony Mechelynck wrote: >> Maybe because in Insert mode at the end of the line, the cursor is one >> past the last character on the line? >> > > 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. > >> How exactly do you call synID()? In a script or at i_CTRL-O on the >> command line? Or in a mapping? >> Tests I did here were inconclusive. >> > > Two ways I experienced while debugging this: > 1. In a CursorMovedI autocmd. > 2. Using i_CTRL-R with the expression register. > > -- > -- > 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. -- -- 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.
