Changes

Jump to navigation Jump to search
749 bytes added ,  23:17, 11 July 2005
metapost patch
* add metafun macros (from metafun manual)
* should be easy: clone [http://www.vim.org/scripts/script.php?script_id=403 this] script to enable metapost/metafun and XML inside ConTeXt
 
=== MetaPost extension ===
 
Should highlight the syntax between <tt>btex/verbatimtex</tt> ... <tt>etex</tt> as TeX.
 
This doesn't work 100% (problems with commands inside comments): If anyone knows how to repair that, please do so. It would be nice if this would have landed in the official metapost syntax highlighting script for vim one day.
 
unlet b:current_syntax
syn include @texTop syntax/tex.vim
" MetaPost has TeX inserts for typeset labels
" verbatimtex, btex, and etex will be treated as keywords
syn match mpTeXbegin "\(verbatimtex\|btex\)"
syn match mpTeXend "etex"
syn region mpTeXinsert start="\(verbatimtex\|btex\)"hs=e+1 end="etex"he=s-1 \
contains=@texTop,mpTeXbegin,mpTeXend containedin=ALL keepend
== Powerful key mappings ==

Navigation menu