Mercurial > vim
view runtime/syntax/godoc.vim @ 6436:26a20ce3532c v7.4.548
updated for version 7.4.548
Problem: Function name not recognized correctly when inside a function.
Solution: Don't check for an alpha character.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 13 Dec 2014 20:50:09 +0100 |
parents | 1e8ebf870720 |
children | 46763b01cd9a |
line wrap: on
line source
" Vim syntax file " Language: Godoc (generated documentation for go) " Maintainer: David Barnett (https://github.com/google/vim-ft-go) " Last Change: 2014 Aug 16 if exists('b:current_syntax') finish endif syn case match syn match godocTitle "^\([A-Z][A-Z ]*\)$" command -nargs=+ HiLink hi def link <args> HiLink godocTitle Title delcommand HiLink let b:current_syntax = 'godoc' " vim: sw=2 sts=2 et