summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-04 16:17:06 +0000
committerKarl Berry <karl@freefriends.org>2011-09-04 16:17:06 +0000
commita3988abe9b55774f905e4c441b00a0e5d9bd2d4a (patch)
tree3bc5392fac19471d9d3f7addc6f55bc7b1c03701 /Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.tex
parentd74ffd924f55e773aca2fb75178e81d7f92fdf5a (diff)
context-vim (29aug11)
git-svn-id: svn://tug.org/texlive/trunk@23802 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.tex')
-rw-r--r--Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.tex18
1 files changed, 6 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.tex b/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.tex
index aabc35cb6a3..8c0cf3d3f1d 100644
--- a/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.tex
+++ b/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.tex
@@ -1,15 +1,15 @@
%D \module
%D [ file=t-syntax-highlight,
-%D version=2011.08.27,
+%D version=2011.08.28,
%D title=\CONTEXT\ User Module,
%D subtitle=Code syntax highlighting,
%D author=Aditya Mahajan,
%D date=\currentdate,
%D copyright=Aditya Mahajan,
-%D email=adityam <at> umich <dot> edu,
+%D email=adityam <at> ieee <dot> org,
%D license=Simplified BSD License]
-\writestatus{loading}{ConTeXt User Module / Code syntax highlighting ver: 2011.08.27}
+\writestatus{loading}{ConTeXt User Module / Code syntax highlighting ver: 2011.08.28}
\startmodule [syntax-highlight]
\usemodule [syntax-groups]
@@ -63,7 +63,7 @@
\let\}\textbraceright
\def\tab##1%
- {\dorecurse{##1}{\space}}%
+ {\dorecurse{##1}{\obeyedspace}}%
\doifmode\s!mkii{\setups{syntaxhighlighting::setup_line_number_mkii}}%
@@ -71,6 +71,7 @@
{\setupwhitespace[\v!none,\v!flexible]}%
\setcatcodetable\externalfilter::minimal_catcodes
+ \expandafter\def\activeendoflinetoken{\strut\par}
\activatespacehandler{\syntaxhighlighting::namespace\externalfilterparameter\c!space}
\stopsetups
@@ -147,14 +148,7 @@
\stoptexdefinition
\starttexdefinition syntaxhighlighting::read_command_aux #1
- % In the filter module, style=something does not work in MkII.
- % So, we explicitly add the global style before reading the file.
- %
- \dostartattributes{\syntaxhighlighting::namespace}\c!style\c!color
- \dostartattributes{\syntaxhighlighting::namespace\syntaxhighlighting::name}\c!style\c!color
- \ReadFile{#1}
- \dostopattributes
- \dostopattributes
+ \ReadFile{#1}
\stoptexdefinition
\stopmode