view runtime/compiler/ghc.vim @ 11152:c780e3774dac v8.0.0463

patch 8.0.0463: side effects from resetting 'compatible' in defaults.vim commit https://github.com/vim/vim/commit/0f39a82b07b285e0c54162e1038348b2988a715c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 16 14:19:36 2017 +0100 patch 8.0.0463: side effects from resetting 'compatible' in defaults.vim Problem: Resetting 'compatible' in defaults.vim has unexpected side effects. (David Fishburn) Solution: Only reset 'compatible' if it was set.
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Mar 2017 14:30:04 +0100
parents 923e383fa291
children
line wrap: on
line source

" Vim compiler file
" Compiler:         GHC Haskell Compiler
" Maintainer:       Daniel Campoverde <alx@sillybytes.net>
" Latest Revision:  2016-11-29

if exists("current_compiler")
  finish
endif
let current_compiler = "ghc"

let s:cpo_save = &cpo
set cpo&vim

CompilerSet errorformat=
    \%-G%.%#:\ build,
    \%-G%.%#preprocessing\ library\ %.%#,
    \%-G[%.%#]%.%#,
    \%E%f:%l:%c:\ %m,
    \%-G--%.%#

if exists('g:compiler_ghc_ignore_unmatched_lines')
  CompilerSet errorformat+=%-G%.%#
endif

let &cpo = s:cpo_save
unlet s:cpo_save