c syntax_checker: match case

This commit is contained in:
kongo2002 2010-03-27 07:12:18 +08:00 committed by Martin Grenfell
parent 101955648e
commit 4089f7d82e

View File

@ -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