1 " Vim filetype plugin file
2 " Language: ConTeXt typesetting engine
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
4 " Latest Revision: 2008-07-09
6 if exists("b:did_ftplugin")
14 let b:undo_ftplugin = "setl com< cms< def< inc< sua< fo<"
16 setlocal comments=b:%D,b:%C,b:%M,:% commentstring=%\ %s formatoptions+=tcroql
18 let &l:define='\\\%([egx]\|char\|mathchar\|count\|dimen\|muskip\|skip\|toks\)\='
19 \ . 'def\|\\font\|\\\%(future\)\=let'
20 \ . '\|\\new\%(count\|dimen\|skip\|muskip\|box\|toks\|read\|write'
21 \ . '\|fam\|insert\|if\)'
23 let &l:include = '^\s*\%(input\|component\)'
25 setlocal suffixesadd=.tex
27 if exists("loaded_matchit")
28 let b:match_ignorecase = 0
29 let b:match_skip = 'r:\\\@<!\%(\\\\\)*%'
30 let b:match_words = '(:),\[:],{:},\\(:\\),\\\[:\\],' .
31 \ '\\start\(\a\+\):\\stop\1'