annotate runtime/compiler/ruby.vim @ 9568:ccbd2e604e59 v7.4.2061

commit https://github.com/vim/vim/commit/e87e6dddc2b2a99572ec0db0833c052214c4fbd3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 17 19:25:04 2016 +0200 patch 7.4.2061 Problem: qf_init_ext() is too big. Solution: Move code to qf_parse_line() (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Jul 2016 19:30:05 +0200
parents a5352e73dc00
children f0f06837a699
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim compiler file
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
2 " Language: Ruby
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
3 " Function: Syntax check and/or error reporting
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
4 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
5 " URL: https://github.com/vim-ruby/vim-ruby
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
6 " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
7 " ----------------------------------------------------------------------------
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 let current_compiler = "ruby"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 let s:cpo_save = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " default settings runs script normally
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " add '-c' switch to run syntax check only:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " CompilerSet makeprg=ruby\ -wc\ $*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " or add '-c' at :make command line:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " :make -c %<CR>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 CompilerSet makeprg=ruby\ -w\ $*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 CompilerSet errorformat=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 \%+E%f:%l:\ parse\ error,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 \%W%f:%l:\ warning:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 \%E%f:%l:in\ %*[^:]:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 \%E%f:%l:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 \%-C%\tfrom\ %f:%l:in\ %.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 \%-Z%\tfrom\ %f:%l,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 \%-Z%p^,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 \%-G%.%#
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 let &cpo = s:cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 unlet s:cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 831
diff changeset
45 " vim: nowrap sw=2 sts=2 ts=8: