diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv b/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv index b15ca34a5b3..26f7be1a7f5 100644 --- a/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv +++ b/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv @@ -1,6 +1,6 @@ %D \module %D [ file=t-syntax-highlight, -%D version=2017.07.29, +%D version=2018.04.16, %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: 2017.07.29)} +\writestatus{loading}{Code syntax highlighting (ver: 2018.04.16)} \startmodule [syntax-highlight] \usemodule [syntax-groups] @@ -96,8 +96,10 @@ \doifnotinset{\externalfilterparameter\c!option}{\v!hyphenated} {\language\minusone}% - \setcatcodetable\externalfilter@minimal_catcodes - \expandafter\def\activeendoflinetoken{\strut\par} + \def\obeyedline{\strut\par} + \setcatcodetable\externalfilter@minimal_catcodes% + \letcharcode\endoflineasciicode\obeyedline + \letcharcode\spaceasciicode\obeyedspace \activatespacehandler{\????syntaxhighlighting\externalfilterparameter\c!space} \raggedright \stopsetups @@ -204,19 +206,19 @@ % Visible space \installspacemethod {\????syntaxhighlighting\v!on} - {\obeyspaces - \unexpanded\def\obeyedspace + {\unexpanded\def\obeyedspace {\mathortext\normalspace {\syntaxhighlighting@split\zeropoint\relax \hbox{\normalcontrolspace}% - \syntaxhighlighting@split\zeropoint\relax}}} + \syntaxhighlighting@split\zeropoint\relax}} + \letcharcode\spaceasciicode\obeyedspace} % Invisible space \installspacemethod {\????syntaxhighlighting\v!off} - {\obeyspaces - \unexpanded\def\obeyedspace + {\unexpanded\def\obeyedspace {\mathortext\normalspace - {\syntaxhighlighting@split\interwordspace\relax}}} + {\syntaxhighlighting@split\interwordspace\relax}} + \letcharcode\spaceasciicode\obeyedspace} % Default \installspacemethod {\????syntaxhighlighting} |