Only match = default
when ends on word boundary
This commit is contained in:
parent
ac0f5b0b93
commit
3b528fcb19
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user