Match operator on word boundary only
This commit is contained in:
parent
a8c012881a
commit
8355c9e571
@ -88,7 +88,7 @@ if !exists('cpp_no_operators') && !exists('cpp_no_delimiters')
|
|||||||
" ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^
|
" ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^
|
||||||
" operator new operator delete operator new[] operator delete[]
|
" operator new operator delete operator new[] operator delete[]
|
||||||
" ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
|
" ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
|
||||||
syn match cppOperator 'operator\s*\(\/\|<<\|>>\|<\|>\|\(new\|delete\)\?\s*\[\s*\]\)\?' display
|
syn match cppOperator '\<operator\>\s*\(\/\|<<\|>>\|<\|>\|\(new\|delete\)\?\s*\[\s*\]\)\?' display
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Default highlighting
|
" Default highlighting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user