-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcpp-funcdef.vim
More file actions
31 lines (28 loc) · 1.18 KB
/
Copy pathcpp-funcdef.vim
File metadata and controls
31 lines (28 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"=============================================================================
" File: syntax/cpp-funcdef.vim {{{1
" Author: Olivier Teuliere
" <URL:http://vim.wikia.com/wiki/Highlighting_of_method_names_in_the_definition>
" Maintainer: Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
" <URL:http://github.com/LucHermitte/lh-cpp>
" Version: 2.2.0.
" Created: 23rd Jul 2007
" Last Update: 16th Dec 2015
"------------------------------------------------------------------------
" Purpose: C++ syntax enhancements
" (*) Hightlights member-function definitions
"
"------------------------------------------------------------------------
" Option:
" - |cpp_no_hl_funcdef| to disable the highlight
" }}}1
" ========================================================================
" {{{1 Syntax definitions
"
" {{{2 Enforce catch by reference
if !get(g:, "cpp_no_hl_funcdef", 0)
syn match cppFuncDef "::\~\?\zs\h\w*\ze([^)]*\()\s*\(const\)\?\)\?$"
hi def link cppFuncDef Special
endif
" ========================================================================
" ========================================================================
" vim: set foldmethod=marker: