Merge branch 'master' into gcc_refactor

This commit is contained in:
LCD 47 2013-07-30 23:19:03 +03:00
commit 77004ad0cb
3 changed files with 7 additions and 1 deletions

View File

@ -277,7 +277,8 @@ endfunction
function! syntastic#c#CheckRuby()
if executable('ruby')
if !has_key(s:cflags, 'ruby')
let s:cflags['ruby'] = system('ruby -r rbconfig -e ''puts Config::CONFIG["archdir"]''')
let s:cflags['ruby'] = system('ruby -r rbconfig -e ' .
\ '''puts RbConfig::CONFIG["rubyhdrdir"] || RbConfig::CONFIG["archdir"]''')
let s:cflags['ruby'] = substitute(s:cflags['ruby'], "\n", '', '')
let s:cflags['ruby'] = ' -I' . s:cflags['ruby']
endif

View File

@ -153,6 +153,10 @@ current filetype is set to passive. See |'syntastic_mode_map'| for more info.
Output info about what checkers are available and in use for the current
filetype.
:SyntasticReset *:SyntasticReset*
Resets the list of errors and turns off all error notifiers.
==============================================================================
4. Global Options *syntastic-global-options*

View File

@ -78,6 +78,7 @@ command! SyntasticToggleMode call s:ToggleMode()
command! -nargs=? -complete=custom,s:CompleteCheckerName SyntasticCheck call s:UpdateErrors(0, <f-args>) <bar> call s:Redraw()
command! Errors call s:ShowLocList()
command! SyntasticInfo call s:registry.echoInfoFor(s:CurrentFiletypes())
command! SyntasticReset call s:ClearCache() | call s:notifiers.refresh(g:SyntasticLoclist.New([]))
highlight link SyntasticError SpellBad
highlight link SyntasticWarning SpellCap