Only match = default when ends on word boundary

This commit is contained in:
Kenneth Benzie 2017-08-23 21:05:06 +01:00
parent ac0f5b0b93
commit 3b528fcb19

View File

@ -50,7 +50,7 @@ if !exists('cpp_no_cpp11')
" Both `delete` and `default` are keywords which normally take precidence,
" however if the match starts before the beginning of the keyword it will be
" chosen instead so we can specialze for this case.
syn match cppStatement '=\s*\(delete\|default\)\ze\s*;\?' contains=cOperator display
syn match cppStatement '=\s*\(delete\|default\)\>\ze\s*;\?' contains=cOperator display
endif
" C++14