Only match = default when ends on word boundary

This commit is contained in:
Kenneth Benzie 2017-08-23 21:05:06 +01:00
parent a629d050cb
commit fb055b8a00

View File

@ -50,7 +50,7 @@ if !exists('cpp_no_cpp11')
" Both `delete` and `default` are keywords which normally take precidence, " Both `delete` and `default` are keywords which normally take precidence,
" however if the match starts before the beginning of the keyword it will be " however if the match starts before the beginning of the keyword it will be
" chosen instead so we can specialze for this case. " 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 endif
" C++14 " C++14