Mercurial > vim
diff runtime/compiler/dartfmt.vim @ 22171:d4c7b3e9cd17
Update runtime files.
Commit: https://github.com/vim/vim/commit/1c6737b20a5cf71751b180461cea22fc76d8870c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 7 22:18:52 2020 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 07 Sep 2020 22:30:04 +0200 |
parents | |
children | e1df51f68736 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/runtime/compiler/dartfmt.vim @@ -0,0 +1,25 @@ +" Vim compiler file +" Compiler: Dart Formatter +" Maintainer: Doug Kearns <dougkearns@gmail.com> +" Last Change: 2019 May 08 + +if exists("current_compiler") + finish +endif +let current_compiler = "dartfmt" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cpo_save = &cpo +set cpo&vim + +CompilerSet makeprg=dartfmt +CompilerSet errorformat=%Eline\ %l\\,\ column\ %c\ of\ %f:\ %m, + \%Z\ %\\{3}│\ %\\+^%\\+, + \%C%.%#, + \%-G%.%# + +let &cpo = s:cpo_save +unlet s:cpo_save