Mercurial > vim
annotate runtime/compiler/rspec.vim @ 15470:55ccc2d353bd v8.1.0743
patch 8.1.0743: giving error messages is not flexible
commit https://github.com/vim/vim/commit/f9e3e09fdc93be9f0d47afbc6c7df1188c2a5a0d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 13 23:38:42 2019 +0100
patch 8.1.0743: giving error messages is not flexible
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
#3302) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jan 2019 23:45:08 +0100 |
parents | 43efa4f5a8ea |
children | f0f06837a699 |
rev | line source |
---|---|
1668 | 1 " Vim compiler file |
2 " Language: RSpec | |
2225 | 3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> |
4869 | 4 " URL: https://github.com/vim-ruby/vim-ruby |
1668 | 5 " Release Coordinator: Doug Kearns <dougkearns@gmail.com> |
6 | |
7 if exists("current_compiler") | |
8 finish | |
9 endif | |
10 let current_compiler = "rspec" | |
11 | |
12 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
13 command -nargs=* CompilerSet setlocal <args> | |
14 endif | |
15 | |
16 let s:cpo_save = &cpo | |
17 set cpo-=C | |
18 | |
4869 | 19 CompilerSet makeprg=rspec |
1668 | 20 |
21 CompilerSet errorformat= | |
4869 | 22 \%f:%l:\ %tarning:\ %m, |
1668 | 23 \%E%.%#:in\ `load':\ %f:%l:%m, |
4869 | 24 \%E%f:%l:in\ `%*[^']':\ %m, |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4869
diff
changeset
|
25 \%-Z\ \ \ \ \ %\\+\#\ %f:%l:%.%#, |
4869 | 26 \%E\ \ %\\d%\\+)%.%#, |
27 \%C\ \ \ \ \ %m, | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4869
diff
changeset
|
28 \%C%\\s%#, |
1668 | 29 \%-G%.%# |
30 | |
31 let &cpo = s:cpo_save | |
32 unlet s:cpo_save | |
33 | |
34 " vim: nowrap sw=2 sts=2 ts=8: |