Mercurial > vim
view runtime/compiler/go.vim @ 31565:7d40c8c10a12 v9.0.1115
patch 9.0.1115: code is indented more than needed
Commit: https://github.com/vim/vim/commit/ed0c1d5d4b30d03b26ff08841f6da2ddf44025a7
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Fri Dec 30 18:07:46 2022 +0000
patch 9.0.1115: code is indented more than needed
Problem: Code is indented more than needed.
Solution: Use an early return to reduce indenting. (Yegappan Lakshmanan,
closes #11758)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 30 Dec 2022 19:15:04 +0100 |
parents | 1e8ebf870720 |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Compiler: Go " Maintainer: David Barnett (https://github.com/google/vim-ft-go) " Last Change: 2014 Aug 16 if exists('current_compiler') finish endif let current_compiler = 'go' if exists(':CompilerSet') != 2 command -nargs=* CompilerSet setlocal <args> endif let s:save_cpo = &cpo set cpo-=C CompilerSet makeprg=go\ build CompilerSet errorformat= \%-G#\ %.%#, \%A%f:%l:%c:\ %m, \%A%f:%l:\ %m, \%C%*\\s%m, \%-G%.%# let &cpo = s:save_cpo unlet s:save_cpo " vim: sw=2 sts=2 et