Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1e6d2b5

Browse files
committed
Add syntax highlighting for function pointers
1 parent c7362bf commit 1e6d2b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎after/syntax/c.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ syn keyword cTodo contained BUG NOTE
1818
" Highlight function names
1919
if get(g:, 'cpp_function_highlight', 1)
2020
syn match cUserFunction "\<\h\w*\ze\_s\{-}(\%(\*\h\w*)\_s\{-}(\)\@!"
21+
syn match cUserFunctionPointer "\%((\s*\*\s*\)\@<=\h\w*\ze\s*)\_s\{-}(.*)"
2122
hi def link cUserFunction Function
23+
hi def link cUserFunctionPointer Function
2224
endif
2325

2426

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /