texlive[55204] Master/texmf-dist: context-vim (18may20)

commits+karl at tug.org commits+karl at tug.org
Mon May 18 22:40:24 CEST 2020


Revision: 55204
          http://tug.org/svn/texlive?view=revision&revision=55204
Author:   karl
Date:     2020-05-18 22:40:23 +0200 (Mon, 18 May 2020)
Log Message:
-----------
context-vim (18may20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/context/third/vim/VERSION
    trunk/Master/texmf-dist/doc/context/third/vim/vim.txt
    trunk/Master/texmf-dist/tex/context/third/vim/2context.vim
    trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex

Modified: trunk/Master/texmf-dist/doc/context/third/vim/VERSION
===================================================================
--- trunk/Master/texmf-dist/doc/context/third/vim/VERSION	2020-05-18 20:40:09 UTC (rev 55203)
+++ trunk/Master/texmf-dist/doc/context/third/vim/VERSION	2020-05-18 20:40:23 UTC (rev 55204)
@@ -1 +1 @@
-2020.04.29
+2020.05.17

Modified: trunk/Master/texmf-dist/doc/context/third/vim/vim.txt
===================================================================
--- trunk/Master/texmf-dist/doc/context/third/vim/vim.txt	2020-05-18 20:40:09 UTC (rev 55203)
+++ trunk/Master/texmf-dist/doc/context/third/vim/vim.txt	2020-05-18 20:40:23 UTC (rev 55204)
@@ -611,7 +611,7 @@
      \definevimtyping
         [...]
         [...
-         vimrc=none,
+         vimrc=,
          ...]
     
 

Modified: trunk/Master/texmf-dist/tex/context/third/vim/2context.vim
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/vim/2context.vim	2020-05-18 20:40:09 UTC (rev 55203)
+++ trunk/Master/texmf-dist/tex/context/third/vim/2context.vim	2020-05-18 20:40:23 UTC (rev 55204)
@@ -1,8 +1,54 @@
 " Author    : Aditya Mahajan <adityam [at] umich [dot] edu> 
-" version   : 2020.04.25
+" version   : 2020.05.17
 " license   : Simplified BSD License
 
 " This script is part of the t-vim module for ConTeXt. It is based on 2html.vim.  
+
+" This script is invoked by the `t-vim` module with the options
+"     vim -c "syntax manual" -c "set syntax=name" ...
+" The option `syntax manual` loads `$VIMRUNTIME/syntax/manual.vim`, which
+" loads `$VIMRUNTIME/syntax/synload.vim`, which in turn loads,
+" `$VIMRUNTIME/syntax/syncolo.vim`, which defines syntax highlighting for
+" `preffered groups` and maps `minor groups` to `preffered groups`. See `:he
+" group-name` for details. We want the minor groups to appear in the output,
+" so we define a simple mapping for them:
+
+" Minor group of Constant
+hi String      cterm=NONE
+hi Character   cterm=NONE
+hi Number      cterm=NONE
+hi Boolean     cterm=NONE
+hi Float       cterm=NONE
+
+" Minor group of Identifier
+hi Function    cterm=NONE
+
+" Minor group of Statement
+hi Conditional cterm=NONE
+hi Repeat      cterm=NONE
+hi Label       cterm=NONE
+hi Operator    cterm=NONE
+hi Keyword     cterm=NONE
+hi Exception   cterm=NONE
+
+" Minor group of PreProc
+hi Include     cterm=NONE
+hi Define      cterm=NONE
+hi Macro       cterm=NONE
+hi PreCondit   cterm=NONE
+
+" Minor group of Type
+hi StorageClass cterm=NONE
+hi Structure    cterm=NONE
+hi Typedef      cterm=NONE
+
+" Minor group of Special
+hi Tag             cterm=NONE
+hi SpecialChar     cterm=NONE
+hi Delimiter       cterm=NONE
+hi SpecialComment  cterm=NONE
+hi Debug           cterm=NONE
+
 " Since this script is called by the t-vim module, we assume that Two buffers
 " are open. The first buffer is the input buffer, and the second buffer is the
 " output buffer. The script parses content line-by-line from the first buffer

Modified: trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex	2020-05-18 20:40:09 UTC (rev 55203)
+++ trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex	2020-05-18 20:40:23 UTC (rev 55204)
@@ -1,6 +1,6 @@
 %D \module
 %D   [     file=t-vim,
-%D      version=2020.04.29,
+%D      version=2020.05.17,
 %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: 2020.04.29)}
+\writestatus{loading}{Vim syntax highlighting (ver: 2020.05.17)}
 
 \startmodule [vim]
 \usemodule   [filter]           % loads module catcodes
@@ -39,74 +39,10 @@
 
     \definesyntaxhighlighting[#1][\s!parent=\vimtyping at namespace#1]
     \setupsyntaxhighlighting [#1][#2]
-
-
-    \setvalue{\e!start raw#1}{\bgroup\obeylines\dodoubleargument\vimtyping at start_raw[#1]}
-    \setvalue{\e!stop  raw#1}{\vimtyping at stop_raw}
-    \setvalue{inlineraw#1}{\dodoubleargument\vimtyping at inline_raw[#1]}
 \stoptexdefinition
 
-\starttexdefinition vimtyping at start_raw [#1][#2]
-    % #1 = filter
-    % #2 = options
-    \egroup %\bgroup in \start#1
-
-    \edef\vimtyping at name{#1}
-    \edef\externalfilter at name{#1}
-    \edef\currentexternalfilter{#1}
-
-    \begingroup % to keep assignments local
-    \setupvimtyping[#1][\c!name=,#2]
-
-    \externalfilterparameter\c!before
-
-    \externalfilter at attributes_start \externalfilter at id \c!style \c!color
-    \syntaxhighlighting at linenumbering_start
-    \processcommacommand[\externalfilterparameter\c!setups]\directsetup
-    \gobbleoneargument % For some reason the next argument is \type{^M}
-\stoptexdefinition
-
-\starttexdefinition vimtyping at stop_raw
-    % The last argument of the environment is \type{^M},
-    % so we explicitly backup one line.
-    \nobreak
-    \vskip-\dimexpr\lineheight+\parskip\relax
-    \nobreak
-
-    \removeunwantedspaces
-    \syntaxhighlighting at linenumbering_stop
-    \externalfilter at attributes_stop
-    \externalfilterparameter\c!after
-    \endgroup
-
-\stoptexdefinition
-
-\starttexdefinition vimtyping at inline_raw [#1][#2]
-    % #1 = filter
-    % #2 = options
-
-    \edef\vimtyping at name{#1}
-    \edef\externalfilter at name{#1}
-    \edef\currentexternalfilter{#1}
-
-    \begingroup % to keep assignments local
-    \setupvimtyping[#1][\c!name=,\c!location=\v!text,#2]
-
-    \externalfilter at attributes_start \externalfilter at id \c!style \c!color
-    % We assume that the setups set minimal_catcodes
-    \processcommacommand[\externalfilterparameter\c!setups]\directsetup
-
-    \vimtyping at inline_raw_indeed
-\stoptexdefinition
-
-\starttexdefinition vimtyping at inline_raw_indeed #1
-    #1
-    \externalfilter at attributes_stop
-    \endgroup
-\stoptexdefinition
-
 % Mode to testing the dev version of 2context script.
-\doifmodeelse{vim-dev}
+\doifmodeelse{vim-dev,dev-vim}
   {\def\vimtyping at script_name{2context.vim}}
   {\doifmodeelse\s!mkiv
       {\ctxlua{context.setvalue("vimtyping at script_name",resolvers.resolve("full:2context.vim"))}}
@@ -120,6 +56,7 @@
        -X % dont connect to X server
        -i NONE % dont use viminfo file
        --noplugin % dont load plugins
+       --clean % dont load scada file (nvim)
        -es % run in ex mode in silent
        % -C % set compatible
        -n % no swap file



More information about the tex-live-commits mailing list.