diff options
Diffstat (limited to 'Master/texmf-dist/tex')
3 files changed, 24 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/context/third/vim/t-syntax-groups.tex b/Master/texmf-dist/tex/context/third/vim/t-syntax-groups.tex index d07a9f80686..ae1f459b8fa 100644 --- a/Master/texmf-dist/tex/context/third/vim/t-syntax-groups.tex +++ b/Master/texmf-dist/tex/context/third/vim/t-syntax-groups.tex @@ -1,6 +1,6 @@ %D \module %D [ file=t-syntax-groups, -%D version=2011.09.03, +%D version=2011.10.20, %D title=\CONTEXT\ User Module, %D subtitle=Syntax highlighting support, %D author=Aditya Mahajan, @@ -9,9 +9,7 @@ %D email=adityam <at> ieee <dot> org, %D license=Simplified BSD License] -\writestatus{loading}{Syntax highlighting groups (ver: 2011.09.03)} - -\tracingmacros=1 +\writestatus{loading}{Syntax highlighting groups (ver: 2011.10.20)} % Colors are specified in hex; in MkII the hex mode needs to be activated. \doifmode\s!mkii @@ -28,6 +26,9 @@ \def\syntaxgroup::namespace {@@@@\syntaxgroup::id} \def\syntaxgroup::name {} +\edef\t!syntaxgroup {\syntaxgroup::id} + + \installparameterhandler \syntaxgroup::namespace \syntaxgroup::id \installsetuphandler \syntaxgroup::namespace \syntaxgroup::id @@ -95,12 +96,14 @@ \iftracesyntaxgroups \syntaxgroup::show_values \fi + \doifmode{\s!mkiv}{\dostarttagged\t!syntaxgroup{#1}} \syntaxgroupparameter\c!command { \externalfilter::attributes_start\syntaxgroup::id\c!style\c!color #2 \externalfilter::attributes_stop } + \doifmode{\s!mkiv}{\dostoptagged} \endgroup \syntaxgroupparameter\c!after \stoptexdefinition 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 2cfa6ae6804..09c2ef8e0d0 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,6 +1,6 @@ %D \module %D [ file=t-syntax-highlight, -%D version=2011.09.03, +%D version=2011.10.14, %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.09.03)} +\writestatus{loading}{Code syntax highlighting (ver: 2011.10.14)} \startmodule [syntax-highlight] \usemodule [syntax-groups] @@ -43,6 +43,8 @@ \def\syntaxhighlighting::namespace {@@@@\syntaxhighlighting::id} \def\syntaxhighlighting::name {} +\edef\t!syntaxhighlighting {\syntaxhighlighting::id} + \installparameterhandler \syntaxhighlighting::namespace \syntaxhighlighting::id \installsetuphandler \syntaxhighlighting::namespace \syntaxhighlighting::id @@ -150,6 +152,13 @@ [\syntaxhighlighting::name] [\c!continue=\externalfilterparameter{\c!number\c!continue}]} \stoptexdefinition + +\starttexdefinition syntaxhighlighting::linenumbering_stop + \dostoptagged + \doifinset{\externalfilterparameter\c!numbering}\syntaxhighlighting::yes + {\stoplinenumbering} +\stoptexdefinition + \stopmode \startmode [\s!mkii] @@ -159,12 +168,12 @@ {\startlinenumbering[\v!continue]} {\startlinenumbering}} \stoptexdefinition -\stopmode \starttexdefinition syntaxhighlighting::linenumbering_stop \doifinset{\externalfilterparameter\c!numbering}\syntaxhighlighting::yes {\stoplinenumbering} \stoptexdefinition +\stopmode \setupsyntaxhighlighting [\c!tab=4, @@ -265,4 +274,3 @@ \protectmodulecatcodes \stopmodule - 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 5810966eb31..2c6fd86d241 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.09.03, +%D version=2011.12.04, %D title=\CONTEXT\ User Module, %D subtitle=Vim syntax highlighting, %D author=Aditya Mahajan, @@ -9,7 +9,7 @@ %D email=adityam <at> ieee <dot> org, %D license=Simplified BSD License] -\writestatus{loading}{Vim syntax highlighting (ver: 2011.09.03)} +\writestatus{loading}{Vim syntax highlighting (ver: 2011.12.04)} \startmodule [vim] \usemodule [filter] @@ -100,7 +100,9 @@ % Mode to testing the dev version of 2context script. \doifmodeelse{vim-dev} {\def\vimtyping::script_name{2context.vim}} - {\def\vimtyping::script_name{kpse:2context.vim}} + {\doifmode\s!mkiv + {\ctxlua{context.setvalue("vimtyping::script_name",resolvers.resolve("full:2context.vim"))}} + {\def\vimtyping::script_name{kpse:2context.vim}}} \def\vimtyping::filter_command {vim -u \vimrcfilename\space % read global config file |