Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit b427af1

Browse files
committed
Cleanup: case-sensitive comparisons.
1 parent 0e23cb0 commit b427af1

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

autoload/syntastic/preprocess.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function! syntastic#preprocess#rparse(errors) abort " {{{2
207207
if i > 0 && errlist[i][:1] == ' ' && errlist[i] !~ '\m\s\+\^$'
208208
let errlist[i-1] .= errlist[i][1:]
209209
call remove(errlist, i)
210-
elseif errlist[i] !~ '\m^\(Lint:\|Lint checking:\|Error in\) '
210+
elseif errlist[i] !~# '\m^\(Lint:\|Lint checking:\|Error in\) '
211211
call remove(errlist, i)
212212
else
213213
let i += 1

autoload/syntastic/util.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ endfunction " }}}2
255255

256256
" A less noisy shellescape()
257257
function! syntastic#util#shescape(string) abort " {{{2
258-
return a:string =~ '\m^[A-Za-z0-9_/.-]\+$' ? a:string : shellescape(a:string)
258+
return a:string =~# '\m^[A-Za-z0-9_/.-]\+$' ? a:string : shellescape(a:string)
259259
endfunction " }}}2
260260

261261
" A less noisy shellescape(expand())

plugin/syntastic.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if has('reltime')
1919
lockvar! g:_SYNTASTIC_START
2020
endif
2121

22-
let g:_SYNTASTIC_VERSION = '3.6.0-42'
22+
let g:_SYNTASTIC_VERSION = '3.6.0-43'
2323
lockvar g:_SYNTASTIC_VERSION
2424

2525
" Sanity checks {{{1
@@ -259,7 +259,7 @@ function! s:BufEnterHook() abort " {{{2
259259
\ ', &buftype = ' . string(&buftype))
260260
if &buftype == ''
261261
call s:notifiers.refresh(g:SyntasticLoclist.current())
262-
elseif &buftype == 'quickfix'
262+
elseif &buftype ==# 'quickfix'
263263
" TODO: this is needed because in recent versions of Vim lclose
264264
" can no longer be called from BufWinLeave
265265
" TODO: at this point there is no b:syntastic_loclist
@@ -550,7 +550,7 @@ function! SyntasticMake(options) abort " {{{2
550550
let &shellredir = old_shellredir
551551
" }}}3
552552

553-
if !s:_running_windows && (s:_os_name() =~ "FreeBSD" || s:_os_name() =~ "OpenBSD")
553+
if !s:_running_windows && (s:_os_name() =~? "FreeBSD" || s:_os_name() =~? "OpenBSD")
554554
call syntastic#util#redraw(g:syntastic_full_redraws)
555555
endif
556556

syntax_checkers/ocaml/camlp4o.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ endfunction " }}}1
4646

4747
function! SyntaxCheckers_ocaml_camlp4o_GetLocList() dict " {{{1
4848
let makeprg = s:GetMakeprg()
49-
if makeprg == ""
49+
if makeprg == ''
5050
return []
5151
endif
5252

syntax_checkers/python/flake8.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function! SyntaxCheckers_python_flake8_GetLocList() dict
4444
let e['text'] .= printf(' [%s%03d]', e['type'], e['nr'])
4545
" E901 are syntax errors
4646
" E902 are I/O errors
47-
if e['type'] ==? 'E' && e['nr'] !~ '\m^9'
47+
if e['type'] ==? 'E' && e['nr'] !~# '\m^9'
4848
let e['subtype'] = 'Style'
4949
endif
5050
call remove(e, 'nr')

syntax_checkers/r/lint.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function! SyntaxCheckers_r_lint_GetLocList() dict
6262
\ 'returns': [0] })
6363

6464
for e in loclist
65-
if e['type'] == 'F'
65+
if e['type'] ==? 'F'
6666
" parse error
6767
let e['type'] = 'E'
6868
call remove(e, 'subtype')

0 commit comments

Comments
 (0)