From 9b1326c216e8e62158c0a68346bc1f7633b6f763 Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Tue, 22 Jan 2013 15:11:23 -0500 Subject: [PATCH] Force case-sensitive matching in syntastic#c#ReadConfig This makes it not match lines like: -include some_header.h --- autoload/syntastic/c.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/syntastic/c.vim b/autoload/syntastic/c.vim index f52e806a..a6e53306 100644 --- a/autoload/syntastic/c.vim +++ b/autoload/syntastic/c.vim @@ -101,7 +101,7 @@ function! syntastic#c#ReadConfig(file) let parameters = [] for line in lines - let matches = matchlist(line, '^\s*-I\s*\(\S\+\)') + let matches = matchlist(line, '\C^\s*-I\s*\(\S\+\)') if matches != [] && matches[1] != '' " this one looks like an absolute path if match(matches[1], '^\%(/\|\a:\)') != -1