Mercurial > vim
annotate runtime/syntax/godoc.vim @ 6999:dc1b678f0e4e v7.4.817
patch 7.4.817
Problem: Invalid memory access in file_pat_to_reg_pat().
Solution: Use vim_isspace() instead of checking for a space only. (Dominique
Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 11 Aug 2015 16:20:05 +0200 |
parents | 1e8ebf870720 |
children | 46763b01cd9a |
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 command -nargs=+ HiLink hi def link <args> | |
14 | |
15 HiLink godocTitle Title | |
16 | |
17 delcommand HiLink | |
18 | |
19 let b:current_syntax = 'godoc' | |
20 | |
21 " vim: sw=2 sts=2 et |