Skip to content

Commit 3694e19

Browse files
committed
Add rails compiler plugin
This will be useful for the upcoming unification of the rails and rake commands.
1 parent 7b988c0 commit 3694e19

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

compiler/rails.vim

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
" Vim compiler file
2+
3+
if exists("current_compiler")
4+
finish
5+
endif
6+
7+
CompilerSet errorformat=%D(in\ %f),
8+
\%\\s%#from\ %f:%l:%m,
9+
\%\\s%#from\ %f:%l:,
10+
\%\\s%##\ %f:%l:%m,
11+
\%\\s%##\ %f:%l,
12+
\%\\s%#[%f:%l:\ %#%m,
13+
\%\\s%#%f:%l:\ %#%m,
14+
\%\\s%#%f:%l:,
15+
\%m\ [%f:%l]:,
16+
\%+Erake\ aborted!,
17+
\%+EDon't\ know\ how\ to\ build\ task\ %.%#,
18+
\%+Einvalid\ option:%.%#,
19+
\%+Irake\ %\\S%\\+%\\s%\\+#\ %.%#
20+
21+
runtime! compiler/rake.vim
22+
23+
let current_compiler = "rails"
24+
25+
CompilerSet makeprg=rails
26+
27+
CompilerSet errorformat^=
28+
\%\\S%\\+\ \ %#%[cefi]%[rxod]%[eir]%[a-z]%#%\\x1b[0m\ %\\+%\\S%\\+%$
29+
\%\\&%\\x1b%\\S%\\+\ \ %#%m%\\>%\\x1b[0m\ \ %#%f,
30+
\%\\s\ %#%[cefi]%[rxod]%[eir]%[a-z]%#\ %\\+%\\S%\\+%$
31+
\%\\&%\\s\ %#%m%\\>\ \ %#%f,
32+
\Overwrite%.%#%\\S%\\+\ \ %#%m%\\x1b[0m\ \ %#%f,
33+
\%-GOverwrite%.%#\"h\"%.%#,
34+
\%+EUsage:\ rails\ %.%#,
35+
\%+EType\ 'rails'\ for\ help.
36+
37+
" -complete=customlist,rails#complete_rails

0 commit comments

Comments
 (0)