From 4089f7d82e928b18c38bc7cccbef1e17b0a8dd92 Mon Sep 17 00:00:00 2001 From: kongo2002 Date: Sat, 27 Mar 2010 07:12:18 +0800 Subject: [PATCH] c syntax_checker: match case --- syntax_checkers/c.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syntax_checkers/c.vim b/syntax_checkers/c.vim index 8eb1d4cf..5f576f01 100644 --- a/syntax_checkers/c.vim +++ b/syntax_checkers/c.vim @@ -81,10 +81,10 @@ function! s:SearchHeaders(handlers) for i in range(100) for handler in l:handlers let line = getline(i) - if line =~? '^#include.*' . handler["regex"] + if line =~# '^#include.*' . handler["regex"] let includes .= handler["func"] call remove(l:handlers, index(l:handlers, handler)) - elseif line =~? '^#include\s\+"\S\+"' + elseif line =~# '^#include\s\+"\S\+"' call add(files, matchstr(line, '^#include\s\+"\zs\S\+\ze"')) endif endfor @@ -102,7 +102,7 @@ function! s:SearchHeaders(handlers) endtry for line in lines for handler in l:handlers - if line =~? '^#include.*' . handler["regex"] + if line =~# '^#include.*' . handler["regex"] let includes .= handler["func"] call remove(l:handlers, index(l:handlers, handler)) endif