Cleanup C/C++ syntax files
This commit is contained in:
parent
cc24665e0d
commit
c334d1b47a
@ -1,12 +1,10 @@
|
||||
" Language: C
|
||||
" Description: Additional C syntax file.
|
||||
" Author: Kenneth Benzie (Benie) <k.benzie83@gmail.com>
|
||||
" Last Modified: September 04, 2016
|
||||
|
||||
if !exists('c_no_function')
|
||||
" Match function expressions: expr()
|
||||
" ^^^^
|
||||
syn match cFunction '\a\w*\ze\s*(' display
|
||||
syn match cFunction '\h\w*\ze\s*(' display
|
||||
|
||||
hi default link cFunction Function
|
||||
endif
|
||||
@ -52,7 +50,7 @@ if exists('g:c_doxygen') && g:c_doxygen
|
||||
|
||||
" Match: `markdown monospace`
|
||||
" ^^^^^^^^^^^^^^^^^^^^
|
||||
syn region cDoxygenSpecial start='`' end='`' contained contains=@NoSpell,cDoxygenLeader display
|
||||
syn region cDoxygenSpecial start='`' end='`' contained contains=@NoSpell,cDoxygenLeader
|
||||
|
||||
" Match: @brief Description. @return Description.
|
||||
" ^^^^^^^^^^^^ ^^^^^^^^^^^^
|
||||
|
@ -1,7 +1,5 @@
|
||||
" Language: C++
|
||||
" Description:
|
||||
" Current Maintainer: Kenneth Benzie (Benie) <k.benzie83@gmail.com>
|
||||
" Created: December 23, 2016
|
||||
" Description: Override default C++ syntax file.
|
||||
|
||||
" Quit when a syntax file was already loaded
|
||||
if exists('b:current_syntax')
|
||||
@ -15,7 +13,6 @@ let b:c_no_cformat = 1
|
||||
let b:c_no_c11 = 1
|
||||
let b:c_no_ansi = 1
|
||||
let b:c_no_bsd = 1
|
||||
let b:c_gnu = 0
|
||||
let b:c_no_operators = 1
|
||||
|
||||
" Read the C syntax to start with
|
||||
@ -28,8 +25,7 @@ syn keyword cppAccess public protected private
|
||||
syn keyword cppModifier inline virtual explicit export
|
||||
syn keyword cppType bool wchar_t
|
||||
syn keyword cppExceptions throw try catch
|
||||
syn keyword cppOperator new delete typeid and bitor or xor compl bitand and_eq
|
||||
\ or_eq xor_eq not not_eq
|
||||
syn keyword cppOperator new delete typeid and bitor or xor compl bitand and_eq or_eq xor_eq not not_eq
|
||||
if exists('c_no_operators')
|
||||
syn keyword cppOperator operator
|
||||
endif
|
||||
@ -73,7 +69,7 @@ if !exists('cpp_no_delimiters')
|
||||
|
||||
" Match: label: as a Label and public: protected: private: as a Statement
|
||||
" ^^^^^ ^^^^^^ ^^^^^^^^^ ^^^^^^^
|
||||
syn match cUserCont "^\s*\I\i*\s*:$" contains=cppAccess display
|
||||
syn match cUserCont "^\s*\I\i*\s*:$" contains=cUserLabel,cppAccess display
|
||||
|
||||
hi default link cppDelimiter cDelimiter
|
||||
hi default link cppNestedName cInclude
|
||||
@ -112,5 +108,3 @@ hi def link cppRawString String
|
||||
hi def link cppNumber Number
|
||||
|
||||
let b:current_syntax = 'cpp'
|
||||
|
||||
" vim: ts=8
|
||||
|
Loading…
x
Reference in New Issue
Block a user