remove the ability to check compound filetypes

remove this for now since it is not being used and will probably never
be used
This commit is contained in:
Martin Grenfell 2011-12-18 00:41:44 +00:00
parent 7c623b7278
commit fb0259a4ef

View File

@ -161,13 +161,10 @@ function! s:CacheErrors()
"sub - for _ in filetypes otherwise we cant name syntax checker "sub - for _ in filetypes otherwise we cant name syntax checker
"functions legally for filetypes like "gentoo-metadata" "functions legally for filetypes like "gentoo-metadata"
let fts = substitute(&ft, '-', '_', 'g') let ft = substitute(&ft, '-', '_', 'g')
if s:Checkable(ft)
for ft in split(fts, '\.') call extend(s:LocList(), SyntaxCheckers_{ft}_GetLocList())
if s:Checkable(ft) endif
call extend(s:LocList(), SyntaxCheckers_{ft}_GetLocList())
endif
endfor
endif endif
endfunction endfunction
@ -185,27 +182,13 @@ function! s:ToggleMode()
echo "Syntastic: " . g:syntastic_mode_map['mode'] . " mode enabled" echo "Syntastic: " . g:syntastic_mode_map['mode'] . " mode enabled"
endfunction endfunction
"check the current filetypes against g:syntastic_mode_map to determine whether "check the current filetype against g:syntastic_mode_map to determine whether
"active mode syntax checking should be done "active mode syntax checking should be done
function! s:ModeMapAllowsAutoChecking() function! s:ModeMapAllowsAutoChecking()
if g:syntastic_mode_map['mode'] == 'passive' if g:syntastic_mode_map['mode'] == 'passive'
return index(g:syntastic_mode_map['active_filetypes'], &ft) != -1
"check at least one filetype is active
for ft in split(&ft, '\.')
if index(g:syntastic_mode_map['active_filetypes'], ft) != -1
return 1
endif
return 0
endfor
else else
return index(g:syntastic_mode_map['passive_filetypes'], &ft) == -1
"check no filetypes are passive
for ft in split(&ft, '\.')
if index(g:syntastic_mode_map['passive_filetypes'], ft) != -1
return 0
endif
return 1
endfor
endif endif
endfunction endfunction