Mercurial > vim
annotate runtime/compiler/ocaml.vim @ 35176:bbbd250e3d7a default tip
runtime(i3config/swayconfig): allow indented commands (#14757)
Commit: https://github.com/vim/vim/commit/679f5abb9930fafda29ae038f47de357e9a0f53e
Author: Josef Lito? <54900518+JosefLitos@users.noreply.github.com>
Date: Mon May 13 22:03:42 2024 +0200
runtime(i3config/swayconfig): allow indented commands (https://github.com/vim/vim/issues/14757)
fixes: https://github.com/vim/vim/issues/14752
Co-authored-by: jamespeapen <jamespeapen@users.noreply.github.com>
Signed-off-by: Josef Lito? <54900518+JosefLitos@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 13 May 2024 22:15:04 +0200 |
parents | e1df51f68736 |
children |
rev | line source |
---|---|
5055 | 1 " Vim Compiler File |
17261 | 2 " Compiler: ocaml |
3 " Maintainer: Markus Mottl <markus.mottl@gmail.com> | |
23466 | 4 " URL: https://github.com/ocaml/vim-ocaml |
17261 | 5 " Last Change: |
34778
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
23466
diff
changeset
|
6 " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) |
23466 | 7 " 2020 Mar 28 - Improved error format (Thomas Leonard) |
17261 | 8 " 2017 Nov 26 - Improved error format (Markus Mottl) |
9 " 2013 Aug 27 - Added a new OCaml error format (Markus Mottl) | |
5055 | 10 " |
11 " Marc Weber's comments: | |
12 " Setting makeprg doesn't make sense, because there is ocamlc, ocamlopt, | |
13 " ocamake and whatnot. So which one to use? | |
14 " | |
15 " This error format was moved from ftplugin/ocaml.vim to this file, | |
16 " because ftplugin is the wrong file to set an error format | |
17 " and the error format itself is annoying because it joins many lines in this | |
18 " error case: | |
19 " | |
20 " Error: The implementation foo.ml does not match the interface foo.cmi: | |
21 " Modules do not match case. | |
22 " | |
23 " So having it here makes people opt-in | |
24 | |
23466 | 25 |
5055 | 26 if exists("current_compiler") |
27 finish | |
28 endif | |
29 let current_compiler = "ocaml" | |
30 | |
31 let s:cpo_save = &cpo | |
32 set cpo&vim | |
33 | |
34 CompilerSet errorformat = | |
23466 | 35 \%EFile\ \"%f\"\\,\ lines\ %*\\d-%l\\,\ characters\ %c-%*\\d:, |
5055 | 36 \%EFile\ \"%f\"\\,\ line\ %l\\,\ characters\ %c-%*\\d:, |
17261 | 37 \%EFile\ \"%f\"\\,\ line\ %l\\,\ characters\ %c-%*\\d\ %.%#, |
5055 | 38 \%EFile\ \"%f\"\\,\ line\ %l\\,\ character\ %c:%m, |
39 \%+EReference\ to\ unbound\ regexp\ name\ %m, | |
40 \%Eocamlyacc:\ e\ -\ line\ %l\ of\ \"%f\"\\,\ %m, | |
41 \%Wocamlyacc:\ w\ -\ %m, | |
42 \%-Zmake%.%#, | |
43 \%C%m, | |
44 \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f', | |
45 \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f', | |
46 \%D%*\\a:\ Entering\ directory\ `%f', | |
47 \%X%*\\a:\ Leaving\ directory\ `%f', | |
17261 | 48 \%D%*\\a[%*\\d]:\ Entering\ directory\ '%f', |
49 \%X%*\\a[%*\\d]:\ Leaving\ directory\ '%f', | |
50 \%D%*\\a:\ Entering\ directory\ '%f', | |
51 \%X%*\\a:\ Leaving\ directory\ '%f', | |
52 \%DEntering\ directory\ '%f', | |
53 \%XLeaving\ directory\ '%f', | |
5055 | 54 \%DMaking\ %*\\a\ in\ %f |
55 | |
56 let &cpo = s:cpo_save | |
57 unlet s:cpo_save |