annotate runtime/compiler/ruby.vim @ 282:33d9c918b8ab

updated for version 7.0075
author vimboss
date Sun, 22 May 2005 22:07:59 +0000
parents 125e80798a85
children 0d6092bb72e6
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Compiler: Ruby syntax check and/or error reporting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Tim Hammerquist <timmy@cpan.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: Tue Jul 16 00:38:00 PDT 2002
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Changelog:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " 0.2: script saves and restores 'cpoptions' value to prevent problems with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " line continuations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " 0.1: initial release
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Contributors:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Hugh Sasse <hgs@dmu.ac.uk>
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
13 " Doug Kearns <djkea2@gus.gscit.monash.edu.au>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Todo:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " match error type %m
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Comments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " I know this file isn't perfect. If you have any questions, suggestions,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " patches, etc., please don't hesitate to let me know.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " This is my first experience with 'errorformat' and compiler plugins and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " I welcome any input from more experienced (or clearer-thinking)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " individuals.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let current_compiler = "ruby"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 let s:cpo_save = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " default settings runs script normally
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " add '-c' switch to run syntax check only:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " CompilerSet makeprg=ruby\ -wc\ $*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " or add '-c' at :make command line:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " :make -c %<CR>
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\ -w\ $*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 CompilerSet errorformat=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 \%+E%f:%l:\ parse\ error,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 \%W%f:%l:\ warning:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 \%E%f:%l:in\ %*[^:]:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 \%E%f:%l:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 \%-C%\tfrom\ %f:%l:in\ %.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 \%-Z%\tfrom\ %f:%l,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 \%-Z%p^,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 \%-G%.%#
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 let &cpo = s:cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 unlet s:cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " vim: ft=vim