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 c7362bf

Browse files
committed
Improve syntax match for user functions
1 parent cc7019b commit c7362bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎after/syntax/c.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
" Original Author: Mikhail Wolfson <mywolfson@gmail.com>
55
" Maintainer: bfrg <https://github.com/bfrg>
66
" Website: https://github.com/bfrg/vim-cpp-modern
7-
" Last Change: Jul 24, 2021
7+
" Last Change: Dec 30, 2023
88
"
99
" This syntax file is based on:
1010
" https://github.com/octol/vim-cpp-enhanced-highlight
@@ -17,7 +17,7 @@ syn keyword cTodo contained BUG NOTE
1717

1818
" Highlight function names
1919
if get(g:, 'cpp_function_highlight', 1)
20-
syn match cUserFunction "\<\h\w*\>\(\s\|\n\)*("me=e-1contains=cParen,cCppParen
20+
syn match cUserFunction "\<\h\w*\ze\_s\{-}(\%(\*\h\w*)\_s\{-}(\)\@!"
2121
hi def link cUserFunction Function
2222
endif
2323

0 commit comments

Comments
(0)

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