Mercurial > vim
view runtime/ftplugin/go.vim @ 23442:f00d6ff51046 v8.2.2264
patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef
Commit: https://github.com/vim/vim/commit/5178b1b02fc96f42d62199a4be9184c2aea8a49a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 1 18:43:51 2021 +0100
patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef
Problem: Vim9: no error for mismatched :endfunc or :enddef.
Solution: Check for the mismatch. (issue https://github.com/vim/vim/issues/7582)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 01 Jan 2021 18:45:03 +0100 |
parents | 1e8ebf870720 |
children | 99d97826842a |
line wrap: on
line source
" Vim filetype plugin file " Language: Go " Maintainer: David Barnett (https://github.com/google/vim-ft-go) " Last Change: 2014 Aug 16 if exists('b:did_ftplugin') finish endif let b:did_ftplugin = 1 setlocal formatoptions-=t setlocal comments=s1:/*,mb:*,ex:*/,:// setlocal commentstring=//\ %s let b:undo_ftplugin = 'setl fo< com< cms<' " vim: sw=2 sts=2 et