summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-02-24 00:18:15 +0000
committerKarl Berry <karl@freefriends.org>2011-02-24 00:18:15 +0000
commit9f12f461785235ae3a85e4ae81628e82be1367ef (patch)
treeebe926aa4df2d3f9a6e4f65ab0117662628d84c1 /Master/texmf-dist
parent45de248350faafde3c074e412fa946270ca39bab (diff)
context-vim (23feb11)
git-svn-id: svn://tug.org/texlive/trunk@21506 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/tex/context/third/vim/t-vim.tex13
1 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/context/third/vim/t-vim.tex b/Master/texmf-dist/tex/context/third/vim/t-vim.tex
index bdb5c30cd2e..03cf65502d4 100644
--- a/Master/texmf-dist/tex/context/third/vim/t-vim.tex
+++ b/Master/texmf-dist/tex/context/third/vim/t-vim.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=t-vim,
-%D version=2011.02.05,
+%D version=2011.02.21,
%D title=\CONTEXT\ User Module,
%D subtitle=Vim syntax highlighting,
%D author=Aditya Mahajan,
@@ -52,6 +52,11 @@
\setcatcodetable\externalfilterwritecatcodes
\stopsetups
+
+\doifmodeelse{vimtest}
+ {\def\vimconversionfile{2context.vim}}
+ {\def\vimconversionfile{kpse:2context.vim}}
+
\def\vimfiltercommand
{vim -u NONE % don't read global config file
-e % run in ex mode
@@ -63,7 +68,7 @@
-c "set syntax=\externalfilterparameter\c!syntax" %
-c "let contextstartline=\externalfilterparameter\c!start" %
-c "let contextstopline=\externalfilterparameter\c!stop" %
- -c "source kpse:2context.vim" %
+ -c "source \vimconversionfile" %
-c "qa" %
\externalfilterinputfile\space
\externalfilteroutputfile}
@@ -101,7 +106,7 @@
\dostopattributes}
\startvimalternative[pscolor]
- \setvimsyntax [Normal] [\maintextcolor][\tttf]
+ \setvimsyntax [Normal] [\externalfilterparameter\c!color][\tttf]
\setvimsyntax
[Constant,Character,Boolean,Float]
@@ -147,7 +152,7 @@
%TODO
% \setvimsyntax [id] [bg=, fc=, style=, command=] == \localframed[options]
\startvimalternative[blackandwhite]
- \setvimsyntax [Normal] [\maintextcolor][\tttf]
+ \setvimsyntax [Normal] [\externalfilterparameter\c!color][\tttf]
\setvimsyntax
[Constant,Character,Boolean,Float,Number,Identifier,Function]