Mercurial > vim
comparison runtime/syntax/tex.vim @ 2551:5e4b1f442057 vim73
Runtime file updates.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 13 Aug 2010 14:38:12 +0200 |
parents | 31e51111bd14 |
children | 916c90b37ea9 |
comparison
equal
deleted
inserted
replaced
2550:7c1f73452ea6 | 2551:5e4b1f442057 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: TeX | 2 " Language: TeX |
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrchipO@ScampbellPfamily.AbizM> | 3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrchipO@ScampbellPfamily.AbizM> |
4 " Last Change: Aug 09, 2010 | 4 " Last Change: Aug 12, 2010 |
5 " Version: 56 | 5 " Version: 57 |
6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax | 6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax |
7 " | 7 " |
8 " Notes: {{{1 | 8 " Notes: {{{1 |
9 " | 9 " |
10 " 1. If you have a \begin{verbatim} that appears to overrun its boundaries, | 10 " 1. If you have a \begin{verbatim} that appears to overrun its boundaries, |
812 delfun s:Greek | 812 delfun s:Greek |
813 endif | 813 endif |
814 | 814 |
815 " Superscripts/Subscripts {{{2 | 815 " Superscripts/Subscripts {{{2 |
816 if s:tex_conceal =~ 's' | 816 if s:tex_conceal =~ 's' |
817 syn region texSuperscript matchgroup=Delimiter start='\^{' end='}' contained concealends contains=texSuperscripts,texStatement | 817 syn region texSuperscript matchgroup=Delimiter start='\^{' end='}' contained concealends contains=texSuperscripts,texStatement,texSubscript,texSuperscript,texMathMatcher |
818 syn region texSubscript matchgroup=Delimiter start='_{' end='}' contained concealends contains=texSubscripts,texStatement | 818 syn region texSubscript matchgroup=Delimiter start='_{' end='}' contained concealends contains=texSubscripts,texStatement,texSubscript,texSuperscript,texMathMatcher |
819 fun! s:SuperSub(group,leader,pat,cchar) | 819 fun! s:SuperSub(group,leader,pat,cchar) |
820 exe 'syn match '.a:group." '".a:leader.a:pat."' contained conceal cchar=".a:cchar | 820 exe 'syn match '.a:group." '".a:leader.a:pat."' contained conceal cchar=".a:cchar |
821 exe 'syn match '.a:group."s '".a:pat."' contained conceal cchar=".a:cchar.' nextgroup='.a:group.'s' | 821 exe 'syn match '.a:group."s '".a:pat."' contained conceal cchar=".a:cchar.' nextgroup='.a:group.'s' |
822 endfun | 822 endfun |
823 call s:SuperSub('texSuperscript','\^','0','⁰') | 823 call s:SuperSub('texSuperscript','\^','0','⁰') |