aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax_checkers/cuda.vim
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2013-06-05 10:50:57 -0500
committerBen Beltran <ben@freshout.us>2013-06-05 10:50:57 -0500
commitfe337504f2fb3ded76326b1e3d4d02787a27d853 (patch)
treeb84891d78de37ae078ea9850a541799b5bca8085 /vim/syntax_checkers/cuda.vim
parente23d7a9f7363bdc69e95a1df31e093db15459fcf (diff)
Aand that's all the plugins.
Diffstat (limited to 'vim/syntax_checkers/cuda.vim')
-rw-r--r--vim/syntax_checkers/cuda.vim37
1 files changed, 0 insertions, 37 deletions
diff --git a/vim/syntax_checkers/cuda.vim b/vim/syntax_checkers/cuda.vim
deleted file mode 100644
index 816505e..0000000
--- a/vim/syntax_checkers/cuda.vim
+++ /dev/null
@@ -1,37 +0,0 @@
-"============================================================================
-"File: cuda.vim
-"Description: Syntax checking plugin for syntastic.vim
-"
-"Author: Hannes Schulz <schulz at ais dot uni-bonn dot de>
-"
-"============================================================================
-
-" in order to also check header files add this to your .vimrc:
-" (this creates an empty .syntastic_dummy.cu file in your source directory)
-"
-" let g:syntastic_cuda_check_header = 1
-
-if exists('loaded_cuda_syntax_checker')
- finish
-endif
-let loaded_cuda_syntax_checker = 1
-
-if !executable('nvcc')
- finish
-endif
-
-function! SyntaxCheckers_cuda_GetLocList()
- let makeprg = 'nvcc --cuda -O0 -I . -Xcompiler -fsyntax-only '.shellescape(expand('%')).' -o /dev/null'
- "let errorformat = '%-G%f:%s:,%f:%l:%c: %m,%f:%l: %m'
- let errorformat = '%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ] %m,%D%*\a[%*\d]: Entering directory `%f'',%X%*\a[%*\d]: Leaving directory `%f'',%D%*\a: Entering directory `%f'',%X%*\a: Leaving directory `%f'',%DMaking %*\a in %f,%f|%l| %m'
-
- if expand('%') =~? '\%(.h\|.hpp\|.cuh\)$'
- if exists('g:syntastic_cuda_check_header')
- let makeprg = 'echo > .syntastic_dummy.cu ; nvcc --cuda -O0 -I . .syntastic_dummy.cu -Xcompiler -fsyntax-only -include '.shellescape(expand('%')).' -o /dev/null'
- else
- return []
- endif
- endif
-
- return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
-endfunction