comparison runtime/syntax/mp.vim @ 10301:07d2b5a3b7cc

commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 23 21:21:08 2016 +0200 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Sun, 23 Oct 2016 21:30:06 +0200
parents 876fbdd84e52
children 2acb87ee55fc
comparison
equal deleted inserted replaced
10300:1888d5ca413c 10301:07d2b5a3b7cc
1 " Vim syntax file 1 " Vim syntax file
2 " Language: MetaPost 2 " Language: MetaPost
3 " Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com> 3 " Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
4 " Former Maintainers: Andreas Scherer <andreas.scherer@pobox.com> 4 " Former Maintainers: Andreas Scherer <andreas.scherer@pobox.com>
5 " Last Change: 2016 Oct 01 5 " Last Change: 2016 Oct 14
6 6
7 if exists("b:current_syntax") 7 if exists("b:current_syntax")
8 finish 8 finish
9 endif 9 endif
10 10
231 " TEX 231 " TEX
232 syn keyword mpVardef TEX TEXPOST TEXPRE 232 syn keyword mpVardef TEX TEXPOST TEXPRE
233 endif 233 endif
234 234
235 " Up to date as of 23-Sep-2016. 235 " Up to date as of 23-Sep-2016.
236 if get(g:, "mp_metafun_macros", 0) 236 if get(b:, 'mp_metafun_macros', get(g:, 'mp_metafun_macros', 0))
237 " Highlight TeX keywords (for use in ConTeXt documents)
238 syn match mpTeXKeyword '\\[a-zA-Z@]\+'
239
237 " These keywords have been added manually. 240 " These keywords have been added manually.
238 syn keyword mpPrimitive runscript 241 syn keyword mpPrimitive runscript
239 242
240 " The following MetaFun keywords have been extracted automatically from 243 " The following MetaFun keywords have been extracted automatically from
241 " ConTeXt source code. They include all "public" macros (where a macro is 244 " ConTeXt source code. They include all "public" macros (where a macro is
754 hi def link mpNewInternal mpInternal 757 hi def link mpNewInternal mpInternal
755 hi def link mpVariable mfVariable 758 hi def link mpVariable mfVariable
756 hi def link mpConstant mfConstant 759 hi def link mpConstant mfConstant
757 hi def link mpOnOff mpPrimitive 760 hi def link mpOnOff mpPrimitive
758 hi def link mpDash mpPrimitive 761 hi def link mpDash mpPrimitive
762 hi def link mpTeXKeyword Identifier
759 763
760 let b:current_syntax = "mp" 764 let b:current_syntax = "mp"
761 765
762 let &cpo = s:cpo_sav 766 let &cpo = s:cpo_sav
763 unlet! s:cpo_sav 767 unlet! s:cpo_sav