annotate runtime/compiler/ruby.vim @ 3237:91e53bcb7946

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Fri, 30 Dec 2011 13:11:27 +0100
parents dd5c1983e355
children a5352e73dc00
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
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
4 " Maintainer: Tim Hammerquist <timh at rubyforge.org>
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
5 " Last Change: 2008 Aug 1
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
6 " URL: http://vim-ruby.rubyforge.org
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
7 " Anon CVS: See above site
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
8 " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
9 " ----------------------------------------------------------------------------
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Changelog:
548
f43150a669dc updated for version 7.0155
vimboss
parents: 529
diff changeset
12 " 0.2: script saves and restores 'cpoptions' value to prevent problems with
f43150a669dc updated for version 7.0155
vimboss
parents: 529
diff changeset
13 " line continuations
f43150a669dc updated for version 7.0155
vimboss
parents: 529
diff changeset
14 " 0.1: initial release
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Contributors:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Hugh Sasse <hgs@dmu.ac.uk>
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
18 " Doug Kearns <djkea2@gus.gscit.monash.edu.au>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Todo:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " match error type %m
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Comments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " I know this file isn't perfect. If you have any questions, suggestions,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " patches, etc., please don't hesitate to let me know.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " This is my first experience with 'errorformat' and compiler plugins and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " I welcome any input from more experienced (or clearer-thinking)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " individuals.
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
30 " ----------------------------------------------------------------------------
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 let current_compiler = "ruby"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 let s:cpo_save = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " default settings runs script normally
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " add '-c' switch to run syntax check only:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " CompilerSet makeprg=ruby\ -wc\ $*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " or add '-c' at :make command line:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " :make -c %<CR>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 CompilerSet makeprg=ruby\ -w\ $*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 CompilerSet errorformat=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 \%+E%f:%l:\ parse\ error,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 \%W%f:%l:\ warning:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 \%E%f:%l:in\ %*[^:]:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 \%E%f:%l:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 \%-C%\tfrom\ %f:%l:in\ %.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 \%-Z%\tfrom\ %f:%l,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 \%-Z%p^,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 \%-G%.%#
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 let &cpo = s:cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 unlet s:cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 831
diff changeset
68 " vim: nowrap sw=2 sts=2 ts=8: