Mercurial > vim
annotate runtime/syntax/godoc.vim @ 10573:3f777388b6ad v8.0.0176
patch 8.0.0176: cannot use :change inside a function definition
commit https://github.com/vim/vim/commit/70bcd7336f9f19304f32c52a86ed5b4b3de852c2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 12 22:20:54 2017 +0100
patch 8.0.0176: cannot use :change inside a function definition
Problem: Using :change in between :function and :endfunction fails.
Solution: Recognize :change inside a function. (ichizok, closes https://github.com/vim/vim/issues/1374)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 12 Jan 2017 22:30:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
6153 | 1 " Vim syntax file |
2 " Language: Godoc (generated documentation for go) | |
3 " Maintainer: David Barnett (https://github.com/google/vim-ft-go) | |
4 " Last Change: 2014 Aug 16 | |
5 | |
6 if exists('b:current_syntax') | |
7 finish | |
8 endif | |
9 | |
10 syn case match | |
11 syn match godocTitle "^\([A-Z][A-Z ]*\)$" | |
12 | |
13 | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
6153
diff
changeset
|
14 hi def link godocTitle Title |
6153 | 15 |
16 | |
17 let b:current_syntax = 'godoc' | |
18 | |
19 " vim: sw=2 sts=2 et |