Hi, I have been trying to use cindent for a c-like language that uses ":=" as the assignment operator. This did not work out well since vim treats "abcd :=" as a label. The attached patch fixes this issue by adding a extra check for that case (identical to the "::" check).
I believe the ideal solution would be to only treat "abc:X" as a label
if 'X' is something that is allowed to follow a label.
In C/C++/Java this is any start of a statement (example: {, }, char,
digit, space, tab, nl, ;, +, -, (, ), _, $, !, ~).
This however is not incorporated in my patch.
BR Gustaf
--
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
vim_dont_treat_colon_eq_as_label.patch
Description: Binary data
