Don't syntax highlight text after #{warning,error}

This commit is contained in:
Kenneth Benzie 2019-08-17 15:00:27 +01:00
parent 7af8660355
commit e2e2be6e44

View File

@ -1,6 +1,9 @@
" Language: C
" Description: Additional C syntax file.
" Don't syntax highlight text after #warning or #error
syn region cPreProc start="^\s*\zs\(%:\|#\)\s*\(warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend
if !exists('c_no_function') && !exists('cpp_no_function')
" Match function expressions: expr()
" ^^^^