Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-11-10 Fir de Conversatie Christian Brabandt
Updated patch attached. Best, Christian -- Raketentriebwerk: gibt es in Schubladen zu kaufen -- -- You received this message from the "vim_dev" 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 --- Yo

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-11-10 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: > Hi vim-dev! > > On Sa, 31 Okt 2015, Christian Brabandt wrote: > > > On Fr, 30 Okt 2015, Bram Moolenaar wrote: > > > > > I suppose that for syntax highlighting using a :syntax command is > > > appropriate. For other contexts we might still want to use an actual > >

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-11-05 Fir de Conversatie Christian Brabandt
Hi vim-dev! On Sa, 31 Okt 2015, Christian Brabandt wrote: > On Fr, 30 Okt 2015, Bram Moolenaar wrote: > > > I suppose that for syntax highlighting using a :syntax command is > > appropriate. For other contexts we might still want to use an actual > > setting. > > > > Not sure about the ":syn o

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-31 Fir de Conversatie Christian Brabandt
On Fr, 30 Okt 2015, Bram Moolenaar wrote: > I suppose that for syntax highlighting using a :syntax command is > appropriate. For other contexts we might still want to use an actual > setting. > > Not sure about the ":syn option" command. Why not use ":syn iskeyword"? That was my first approach

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-30 Fir de Conversatie Bram Moolenaar
Nikolay Pavlov wrote: > 2015-10-27 14:44 GMT+03:00 Christian Brabandt : > > Hi, > > currently setting 'isk' option has - among others - an unwanted side > > effect on the syntax highlighting. > > > > For example by removing the '_' from the 'iskeyword' setting, defined > > syntax keywords start m

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-30 Fir de Conversatie Bram Moolenaar
Christian wrote: > currently setting 'isk' option has - among others - an unwanted side > effect on the syntax highlighting. > > For example by removing the '_' from the 'iskeyword' setting, defined > syntax keywords start matching where they didn't match before. > > E.g. in a SQL buffer, >

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-27 Fir de Conversatie Christian Brabandt
Hi Tony! On Di, 27 Okt 2015, Tony Mechelynck wrote: > What about using the already existing commands below (assuming Vim > version 6.2 or later)? > > let s:save_isk = &l:isk > try > setl isk&vim" or to whatever value is desired > … > … > … > finally > let &l:isk = s:save_isk >

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-27 Fir de Conversatie Nikolay Pavlov
2015-10-27 23:12 GMT+03:00 Tony Mechelynck : > What about using the already existing commands below (assuming Vim > version 6.2 or later)? > > let s:save_isk = &l:isk > try > setl isk&vim" or to whatever value is desired > … > … > … > finally > let &l:isk = s:save_isk > endtry > >

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-27 Fir de Conversatie Nikolay Pavlov
2015-10-27 18:04 GMT+03:00 Christian Brabandt : > Hi Nikolay! > > On Di, 27 Okt 2015, Nikolay Pavlov wrote: >> Somewhere in the Neovim bug tracker I suggested that it would be >> better to do another thing: > > Is there anything you haven't thought about it yet? > >> When syntax file is being loade

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-27 Fir de Conversatie Tony Mechelynck
What about using the already existing commands below (assuming Vim version 6.2 or later)? let s:save_isk = &l:isk try setl isk&vim" or to whatever value is desired … … … finally let &l:isk = s:save_isk endtry IMHO authors who won't bother saving and restoring the option won't us

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-27 Fir de Conversatie Nikolay Pavlov
2015-10-27 20:00 GMT+03:00 Charles Campbell : > Christian Brabandt wrote: >> That is true with many patches however. It works only well, if >> contributors do use it. And a lot of syntax files need to be >> maintained, if only because the language evolves within times. Best, >> Christian > Also bec

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-27 Fir de Conversatie Charles Campbell
Christian Brabandt wrote: > That is true with many patches however. It works only well, if > contributors do use it. And a lot of syntax files need to be > maintained, if only because the language evolves within times. Best, > Christian Also because suggested syntax changes are occasionally ill-ad

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-27 Fir de Conversatie Christian Brabandt
Hi Nikolay! On Di, 27 Okt 2015, Nikolay Pavlov wrote: > Somewhere in the Neovim bug tracker I suggested that it would be > better to do another thing: Is there anything you haven't thought about it yet? > When syntax file is being loaded > save user &iskeyword setting then > at the each :syn sta

Re: proposed patch: Make syntax highlighting independent of 'iskeyword' setting

2015-10-27 Fir de Conversatie Nikolay Pavlov
2015-10-27 14:44 GMT+03:00 Christian Brabandt : > Hi, > currently setting 'isk' option has - among others - an unwanted side > effect on the syntax highlighting. > > For example by removing the '_' from the 'iskeyword' setting, defined > syntax keywords start matching where they didn't match before