Mercurial > vim
annotate runtime/compiler/ghc.vim @ 29780:9f8dd1b77563 v9.0.0229
patch 9.0.0229: Vim9: error message for missing type is not clear
Commit: https://github.com/vim/vim/commit/62e0e2e54b34b618500be4521ab1c33e1c378b42
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 20 12:07:58 2022 +0100
patch 9.0.0229: Vim9: error message for missing type is not clear
Problem: Vim9: error message for missing type is not clear.
Solution: Mention the context. (issue https://github.com/vim/vim/issues/10944)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 20 Aug 2022 13:15:03 +0200 |
parents | 923e383fa291 |
children |
rev | line source |
---|---|
10448
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Vim compiler file |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 " Compiler: GHC Haskell Compiler |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 " Maintainer: Daniel Campoverde <alx@sillybytes.net> |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 " Latest Revision: 2016-11-29 |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 if exists("current_compiler") |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 finish |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 endif |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 let current_compiler = "ghc" |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 let s:cpo_save = &cpo |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 set cpo&vim |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 CompilerSet errorformat= |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 \%-G%.%#:\ build, |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 \%-G%.%#preprocessing\ library\ %.%#, |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 \%-G[%.%#]%.%#, |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 \%E%f:%l:%c:\ %m, |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 \%-G--%.%# |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 if exists('g:compiler_ghc_ignore_unmatched_lines') |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
22 CompilerSet errorformat+=%-G%.%# |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 endif |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
24 |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
25 let &cpo = s:cpo_save |
923e383fa291
commit https://github.com/vim/vim/commit/cf49790443eea7d720be556f4aaea261feb55259
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 unlet s:cpo_save |