Hi, list.

This is a bug in syntax/vim.vim.
Consider we are editing a Vim script file. (setl ft=vim)
When we use two slashes in a line, the syntax is broken.
For example:

let [a, b] = [winheight(0) / 2, winwidth(0) / 2]

'/ 2, winwidth(0) /' is considered as a string.

It's tolerable if it does not affect the following lines.
But in the next example, the vimString in slashes plus the parenthesis
break the syntax to the end of the  file.

let m = 5
let y = 20 * (m / 4) + m / 4 
let z = 10
for i in range(10)
  echo i
endfor
while i
  let i -= 1
endwhile

-- 
-- 
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

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

Raspunde prin e-mail lui