From 2871762b7cad270edd5f5c7c6e5d62c1c11b1799 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 7 Sep 2011 14:57:13 -0400 Subject: [PATCH] fix C constant regex to allow e.g. _256K --- vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 975a973..213ec45 100644 --- a/vimrc +++ b/vimrc @@ -107,8 +107,8 @@ if has("autocmd") " autocmd FileType c match error /\v\s+$/ " autocmd FileType c 2match error /\t/ " autocmd FileType cpp 2match error /\t/ - autocmd FileType c syn match Constant display "\<_*[A-Z][A-Z0-9_]*\>" - autocmd FileType cpp syn match Constant display "\<_*[A-Z][A-Z0-9_]*\>" + autocmd FileType c syn match Constant display "\<[A-Z_][A-Z_0-9]*\>" + autocmd FileType cpp syn match Constant display "\<[A-Z_][A-Z_0-9]*\>" autocmd FileType dosbatch syn match Comment "^@rem\($\|\s.*$\)"lc=4 contains=dosbatchTodo,@dosbatchNumber,dosbatchVariable,dosbatchArgument au BufRead,BufNewFile *.dxl set filetype=dxl autocmd FileType dxl set syntax=cpp