texlive[47531] Master/texmf-dist: context-vim (18apr18)

commits+karl at tug.org commits+karl at tug.org
Tue May 1 19:33:55 CEST 2018


Revision: 47531
          http://tug.org/svn/texlive?view=revision&revision=47531
Author:   karl
Date:     2018-05-01 19:33:54 +0200 (Tue, 01 May 2018)
Log Message:
-----------
context-vim (18apr18)

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/t-syntax-highlight.mkiv
    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	2018-05-01 17:33:40 UTC (rev 47530)
+++ trunk/Master/texmf-dist/doc/context/third/vim/VERSION	2018-05-01 17:33:54 UTC (rev 47531)
@@ -1 +1 @@
-2017.07.29
+2018.04.17

Modified: trunk/Master/texmf-dist/doc/context/third/vim/vim.txt
===================================================================
--- trunk/Master/texmf-dist/doc/context/third/vim/vim.txt	2018-05-01 17:33:40 UTC (rev 47530)
+++ trunk/Master/texmf-dist/doc/context/third/vim/vim.txt	2018-05-01 17:33:54 UTC (rev 47531)
@@ -322,36 +322,35 @@
             \stopruby
     \stopitemize
 
-Although, the source code is easy to read, the output will not be. This is
-because, unlike regular TeX,  `\start<vimtyping>` ... `\stop<vimtyping>`
-environment does not ignore white space. So, the output is the same as 
+By default, the leading whitespace is stripped so that the output is the same
+as
 
     \startitemize
     \item A hello world example in C
     \startC
-              #include<stdio.h>
+    #include<stdio.h>
 
-              int main()
-              {
-                printf("Hello World")
-              }
+    int main()
+    {
+      printf("Hello World")
+    }
     \stopC
     \item A hello world example in ruby
     \startruby
-              puts "Hello World"
+    puts "Hello World"
     \stopruby
     \stopitemize
 
-So, all the code snippets are indented by nine space. To avoid this behavior,
-set
 
+If you want to disable this, set
+
     \definevimtyping
         [...]
         [...
-         strip=yes,
+         strip=no,
          ...]
 
-The default value of `strip` is `no`.
+The default value of `strip` is ψ`yes`.
 
 Adding left margin
 ------------------
@@ -590,7 +589,7 @@
 The core commands freely switch between the two. In some cases, `option=yes` has
 a different meaning than `option=on`. To avoid confusion, I have made these
 synonyms. Thus, whenever the documentation says `option=yes`, you may use
-`option=on`. One less thing to worry about!
+`option=on`. And vice-versa. One less thing to worry about!
 
 A bit of a history
 ------------------

Modified: trunk/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv	2018-05-01 17:33:40 UTC (rev 47530)
+++ trunk/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv	2018-05-01 17:33:54 UTC (rev 47531)
@@ -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 at minimal_catcodes
-  \expandafter\def\activeendoflinetoken{\strut\par}
+  \def\obeyedline{\strut\par}
+  \setcatcodetable\externalfilter at 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 at split\zeropoint\relax
          \hbox{\normalcontrolspace}%
-         \syntaxhighlighting at split\zeropoint\relax}}}
+         \syntaxhighlighting at split\zeropoint\relax}}
+  \letcharcode\spaceasciicode\obeyedspace}
 
 % Invisible space
 \installspacemethod {\????syntaxhighlighting\v!off}
-  {\obeyspaces
-   \unexpanded\def\obeyedspace
+  {\unexpanded\def\obeyedspace
       {\mathortext\normalspace
-          {\syntaxhighlighting at split\interwordspace\relax}}}
+          {\syntaxhighlighting at split\interwordspace\relax}}
+   \letcharcode\spaceasciicode\obeyedspace}
 
 % Default
 \installspacemethod {\????syntaxhighlighting}

Modified: trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex	2018-05-01 17:33:40 UTC (rev 47530)
+++ trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex	2018-05-01 17:33:54 UTC (rev 47531)
@@ -1,6 +1,6 @@
 %D \module
 %D   [     file=t-vim,
-%D      version=2017.07.29,
+%D      version=2018.04.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: 2017.07.29)}
+\writestatus{loading}{Vim syntax highlighting (ver: 2018.04.17)}
 
 \startmodule [vim]
 \usemodule   [filter]           % loads module catcodes
@@ -162,7 +162,7 @@
    % \c!after=,
    % \c!style=\tttf,
    % \c!color=,
-   \c!strip=\v!off,
+   \c!strip=\v!yes,
    \c!escape=\v!off,
    % \c!highlight=,
    % \c!highlightcolor=lightgray,



More information about the tex-live-commits mailing list