Files
neovim/runtime
Ivan 17298a7912 runtime: update vimCommand syntax pattern (#6976)
Update a flawed match pattern for the vimCommand syntax group. To see
the effect of this fix, open a vimscript buffer,

  nvim -u NONE foo.vim

configure a couple highlight groups,

  :hi! vimIsCommand ctermfg=Green
  :hi! vimCommand ctermfg=Red
  :syntax enable

and add the following lines to the buffer:

  let foo=xFoo
  let bar=zBar

You'll notice the "z" in zBar is Red, while xFoo and the rest of Bar are green. This will
be the case as long as the word following `=` starts with the letter "z". This has already
been fixed upstream by adding a "\>" word boundary to the match pattern:

  https://github.com/vim/vim/issues/124
  e271909625 (diff-86da060e2153c8ce5dc317a7b4b5a29dR27)

This particular match pattern was also mentioned in issue #5491, but in reference to a bug
that was related to the generated part of syntax/vim.vim, whereas this bug lives in the
non-generated part of the file.
2017-07-08 12:44:36 +02:00
..
2017-04-29 01:51:56 +02:00
2017-04-30 22:16:30 +02:00
2017-07-07 00:34:37 +02:00
2017-05-01 13:23:12 +02:00
2017-05-01 12:30:54 +02:00
2017-04-28 23:39:24 +02:00
2017-04-30 22:10:21 +02:00
2017-01-31 02:02:09 +01:00
2017-05-01 13:19:34 +02:00
2017-05-01 13:32:51 +02:00
2017-01-31 02:02:09 +01:00
2017-01-31 02:02:09 +01:00
2017-05-01 13:32:51 +02:00
2017-04-28 21:06:07 +02:00