aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/mp.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-29 14:59:10 +0200
committerGitHub <noreply@github.com>2017-04-29 14:59:10 +0200
commit5a304b78647d1a3913cbab197ccde033ae0510cd (patch)
tree654eb1c155b568745309646e79b970e011527577 /runtime/syntax/mp.vim
parent51a2d8dc36b56125c81a085a773eb47671eec7f0 (diff)
parent024ff6b80831a27d2f6571006eb6fdf94d95f882 (diff)
downloadrneovim-5a304b78647d1a3913cbab197ccde033ae0510cd.tar.gz
rneovim-5a304b78647d1a3913cbab197ccde033ae0510cd.tar.bz2
rneovim-5a304b78647d1a3913cbab197ccde033ae0510cd.zip
Merge #6615 from justinmk/vim-patches
Diffstat (limited to 'runtime/syntax/mp.vim')
-rw-r--r--runtime/syntax/mp.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/syntax/mp.vim b/runtime/syntax/mp.vim
index 95723d0d97..a8fa36fe0a 100644
--- a/runtime/syntax/mp.vim
+++ b/runtime/syntax/mp.vim
@@ -2,7 +2,7 @@
" Language: MetaPost
" Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
" Former Maintainers: Andreas Scherer <andreas.scherer@pobox.com>
-" Last Change: 2016 Oct 01
+" Last Change: 2016 Oct 14
if exists("b:current_syntax")
finish
@@ -233,7 +233,10 @@ if get(g:, "other_mp_macros", 1)
endif
" Up to date as of 23-Sep-2016.
-if get(g:, "mp_metafun_macros", 0)
+if get(b:, 'mp_metafun_macros', get(g:, 'mp_metafun_macros', 0))
+ " Highlight TeX keywords (for use in ConTeXt documents)
+ syn match mpTeXKeyword '\\[a-zA-Z@]\+'
+
" These keywords have been added manually.
syn keyword mpPrimitive runscript
@@ -756,6 +759,7 @@ hi def link mpVariable mfVariable
hi def link mpConstant mfConstant
hi def link mpOnOff mpPrimitive
hi def link mpDash mpPrimitive
+hi def link mpTeXKeyword Identifier
let b:current_syntax = "mp"