mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
checkstyle.vim: add catch to checked keywords
* Check catch() without space * Check }\ncatch () with newline * Remove false positive on area_for() and other functions ending with a keyword
This commit is contained in:
parent
4c581823cd
commit
83b732c732
3
3rdparty/pulkomandy/checkstyle.vim
vendored
3
3rdparty/pulkomandy/checkstyle.vim
vendored
@ -20,7 +20,7 @@
|
||||
:fu FuncHaikuCheck()
|
||||
call matchadd('Style', '\%>80v.\+', -1) " line over 80 char
|
||||
call matchadd('Style', '^\s* \s*', -1) " spaces instead of tabs
|
||||
call matchadd('Style', '\(for\|if\|select\|switch\|while\)(', -1)
|
||||
call matchadd('Style', '[\t ]\(for\|if\|select\|switch\|while\|catch\)(', -1)
|
||||
"missing space after control statement
|
||||
call matchadd('Style', '^\(\(?!\/\/\|\/\*\).\)*//\S', -1)
|
||||
" Missing space at comment start
|
||||
@ -39,6 +39,7 @@
|
||||
" > operator at EOL (without false positive on #include <file.h>)
|
||||
call matchadd('Style', '){', -1) " Missing space after method header
|
||||
call matchadd('Style', '}\n\s*else', -1) " Malformed else
|
||||
call matchadd('Style', '}\n\s*catch', -1) " Malformed catch
|
||||
call matchadd('Style', '\s$', -1) "Spaces at end of line
|
||||
call matchadd('Style', ',\S', -1) " Missing space after comma
|
||||
call matchadd('Style', '^}\n\{1,2}\S', -1)
|
||||
|
Loading…
Reference in New Issue
Block a user