diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkii')
-rw-r--r-- | Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkii | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkii b/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkii index 3119b2c6a00..add00c0526b 100644 --- a/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkii +++ b/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkii @@ -1,6 +1,6 @@ %D \module %D [ file=t-syntax-highlight, -%D version=2011.12.17, +%D version=2011.12.28, %D title=\CONTEXT\ User Module, %D subtitle=Code syntax highlighting, %D author=Aditya Mahajan, @@ -9,7 +9,7 @@ %D email=adityam <at> ieee <dot> org, %D license=Simplified BSD License] -\writestatus{loading}{Code syntax highlighting (ver: 2011.12.17)} +\writestatus{loading}{Code syntax highlighting (ver: 2011.12.28)} \startmodule [syntax-highlight] \usemodule [syntax-groups] @@ -31,9 +31,9 @@ \stopmode \startinterface all - \setinterfaceconstant {syntax} {syntax} - \setinterfaceconstant {highlight} {highlight} - \setinterfaceconstant {highlightcolor} {highlightcolor} + \setinterfaceconstant {syntax} {syntax} + \setinterfaceconstant {highlight} {highlight} + \setinterfaceconstant {highlightcolor} {highlightcolor} \stopinterface %D Name space @@ -70,21 +70,21 @@ \edef\syntaxhighlighting@name{\currentexternalfilter} \edef\colorscheme@name{\externalfilterparameter\c!alternative} - + \let\SYN\syntaxgroup - \let\HGL\syntaxhighlightline + \edef\HGL{\externalfilterparameter{\c!highlight\c!command}} \let\\\textbackslash \let\{\textbraceleft \let\}\textbraceright \def\tab##1% {\dorecurse{##1}{\obeyedspace}}% - + \doifmode\s!mkii{\setups{syntaxhighlighting@setup_line_number_mkii}}% - + \doifinset{\externalfilterparameter\c!option}{\v!packed} {\setupwhitespace[\v!none,\v!flexible]}% - + \setcatcodetable\externalfilter@minimal_catcodes \expandafter\def\activeendoflinetoken{\strut\par} \activatespacehandler{\syntaxhighlighting@namespace\externalfilterparameter\c!space} @@ -209,9 +209,13 @@ \c!number\c!width=2em, \c!number\c!left=, \c!number\c!right=, - \c!number\c!command=, + \c!numbercommand=, \c!number\c!distance=0.5em, \c!number\c!align=\v!flushright, + %Highlight options + \c!highlight=, + \c!highlightcolor=lightgray, + \c!highlight\c!command=\syntaxhighlightline, ] \def\currentsyntaxhighlighting {\syntaxhighlighting@name} @@ -250,12 +254,14 @@ % Line highlighting -\definetextbackground[syntaxhighlightline] - [\c!location=\v!paragraph, +\definetextbackground[syntaxhighlightline] + [\c!location=\v!text, + %% location=paragraph causes a spurious line break \c!alternative=0, \c!frame=\v!off, \c!background=\v!color, \c!backgroundcolor=\externalfilterparameter\c!highlightcolor, + \c!before=, \c!after=, ] |