vim-jp / vim-cpp

c or cpp syntax files
145 stars 44 forks source link

add keyword restrict #37

Closed mattn closed 8 years ago

mattn commented 8 years ago

@rhysd @osyo-manga do you have something tought?

rhysd commented 8 years ago

Although my understanding may not be correct, restrict was firstly added to C99. So, I think it should be added to syntax/c.vim.

rhysd commented 8 years ago

I looked into it more.

restrict is in C99 keywords but not in C++ keywords. So I think it is best that restrict is highlighted as keyword in C but not highlighted in C++.

rhysd commented 8 years ago

I looked syntax/c.vim. I think this condition should be fixed to !exists("c_no_c99") && s:ft !=# 'cpp'.

mattn commented 8 years ago

Ah, he says highlighting restrict keyword in C++ is bad.

https://github.com/vim/vim/issues/623

okay, I'll suggest your change to bram.

thanks

rhysd commented 8 years ago

:+1: