robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
5a304b7864
master
1" Language: ConTeXt typesetting engine 2" Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com> 3" Latest Revision: 2016 Oct 15 4 5let s: keepcpo = & cpo 6set cpo & vim 7 8" Complete keywords in MetaPost blocks 9function ! contextcomplete#Complete ( findstart , base ) 10if a: findstart == 1 11if len ( synstack ( line ( '.' ), 1 )) > 0 && 12 \synIDattr ( synstack ( line ( '.' ), 1 )[ 0 ], "name" ) ==# 'contextMPGraphic' 13return syntaxcomplete#Complete ( a: findstart , a: base ) 14else 15return -3 16endif 17else 18return syntaxcomplete#Complete ( a: findstart , a: base ) 19endif 20endfunction 21 22let & cpo = s: keepcpo 23unlet s: keepcpo 24 25" vim: sw=2 fdm=marker