Checker yarac: minor cleanup.

This commit is contained in:
LCD 47 2017-12-22 08:21:49 +02:00
parent e888225518
commit 88dd65673a
3 changed files with 14 additions and 13 deletions

View File

@ -7633,7 +7633,7 @@ You probably also need a plugin to set |filetype| for YANG files, such as
==============================================================================
SYNTAX CHECKERS FOR YARA *syntastic-checkers-yara*
The following checkers are available for YARA rule files. (filetype "yara"):
The following checkers are available for YARA rule files (filetype "yara"):
1. yarac....................|syntastic-yara-yarac|
@ -7643,8 +7643,8 @@ The following checkers are available for YARA rule files. (filetype "yara"):
Name: yarac
Maintainer: Albert Song <albb@teamt5.org>
"yarac" is the official compiler for YARA rule files.
See the project's page at GitHub for more information:
"yarac" is the official compiler for YARA rule files. See the project's page
at GitHub for more information:
https://github.com/VirusTotal/yara
@ -7655,9 +7655,10 @@ accepts the standard options described at |syntastic-config-makeprg|.
Note~
You probably also need to set |filetype| for YARA rule files to "yara".
You can do that with an `:autocmd`: >
autocmd BufNewFile,BufRead *.yar,*.yara set filetype=yara syntax=yara
You probably also need a plugin to set |filetype| for YARA rule files, such as
"vim-yara":
https://github.com/yaunj/vim-yara
==============================================================================
SYNTAX CHECKERS FOR Z80 *syntastic-checkers-z80*

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.8.0-97'
let g:_SYNTASTIC_VERSION = '3.8.0-100'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -1,6 +1,6 @@
"============================================================================
"File: yara.vim
"Description: Syntax checking plugin for syntastic.vim
"Description: Syntax checking plugin for syntastic
"Maintainer: Albert Song (albb@teamt5.org)
"License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
@ -22,13 +22,13 @@ function! SyntaxCheckers_yara_yarac_GetLocList() dict
let makeprg = self.makeprgBuild({ 'fname_after' : syntastic#util#DevNull() })
let errorformat =
\ '%f(%l): %trror: %m,' .
\ '%f(%l): %tarning: %m,'.
\ '%f(%l): %m'
\ '%f(%l): %trror: %m,' .
\ '%f(%l): %tarning: %m,' .
\ '%f(%l): %m'
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({