view runtime/compiler/dotnet.vim @ 32663:118a098718d8 v9.0.1663

patch 9.0.1663: Termdebug on MS-Windows: some file names are not recognized Commit: https://github.com/vim/vim/commit/c9a4a8ab28da2b11856a3f08ccba2e91f46b85c3 Author: Christian Brabandt <cb@256bit.org> Date: Sat Jun 24 20:02:25 2023 +0100 patch 9.0.1663: Termdebug on MS-Windows: some file names are not recognized Problem: Termdebug on MS-Windows: some file names are not recognized. Solution: Do not always change \t and \n. (Christian Brabandt, closes #12565, closes #12560, closes #12550)
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jun 2023 21:15:03 +0200
parents 15c80d8bc515
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:            dotnet build (.NET CLI)
" Maintainer:          Nick Jensen <nickspoon@gmail.com>
" Last Change:         2022-12-06
" License:             Vim (see :h license)
" Repository:          https://github.com/nickspoons/vim-cs

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

if exists(":CompilerSet") != 2		" older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

if get(g:, "dotnet_errors_only", v:false)
  CompilerSet makeprg=dotnet\ build\ -nologo
		     \\ -consoleloggerparameters:NoSummary
		     \\ -consoleloggerparameters:ErrorsOnly
else
  CompilerSet makeprg=dotnet\ build\ -nologo\ -consoleloggerparameters:NoSummary
endif

if get(g:, "dotnet_show_project_file", v:true)
  CompilerSet errorformat=%E%f(%l\\,%c):\ %trror\ %m,
			 \%W%f(%l\\,%c):\ %tarning\ %m,
			 \%-G%.%#
else
  CompilerSet errorformat=%E%f(%l\\,%c):\ %trror\ %m\ [%.%#],
			 \%W%f(%l\\,%c):\ %tarning\ %m\ [%.%#],
			 \%-G%.%#
endif

let &cpo = s:cpo_save
unlet s:cpo_save