texlive[45932] Master/texmf-dist: context-vim (28nov17)

commits+karl at tug.org commits+karl at tug.org
Tue Nov 28 23:13:49 CET 2017


Revision: 45932
          http://tug.org/svn/texlive?view=revision&revision=45932
Author:   karl
Date:     2017-11-28 23:13:48 +0100 (Tue, 28 Nov 2017)
Log Message:
-----------
context-vim (28nov17)

Modified Paths:
--------------
    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/vim.txt
===================================================================
--- trunk/Master/texmf-dist/doc/context/third/vim/vim.txt	2017-11-28 22:04:34 UTC (rev 45931)
+++ trunk/Master/texmf-dist/doc/context/third/vim/vim.txt	2017-11-28 22:13:48 UTC (rev 45932)
@@ -478,7 +478,7 @@
     \definevimtyping[C][syntax=c, escape=on]
 
     \startC
-    /* The following function computers the roots of \m{ax^2+bx+c=0}
+    /* The following function computes the roots of \m{ax^2+bx+c=0}
      * using the determinant \m{\Delta=\frac{-b\pm\sqrt{b^2-2ac}}{2a}} 
      */
         double root (double a, double b, double c) {....}

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	2017-11-28 22:04:34 UTC (rev 45931)
+++ trunk/Master/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv	2017-11-28 22:13:48 UTC (rev 45932)
@@ -1,241 +1,243 @@
-%D \module
-%D   [     file=t-syntax-highlight,
-%D      version=2015.05.14,
-%D        title=\CONTEXT\ User Module,
-%D     subtitle=Code syntax highlighting,
-%D       author=Aditya Mahajan,
-%D         date=\currentdate,
-%D    copyright=Aditya Mahajan,
-%D        email=adityam <at> ieee <dot> org,
-%D      license=Simplified BSD License]
-
-\writestatus{loading}{Code syntax highlighting (ver: 2015.05.14)}
-
-\startmodule    [syntax-highlight]
-\usemodule      [syntax-groups]
-\usemodule      [filter] % loads module-catcodes
-
-\unprotect
-
-\startinterface all
-  \setinterfaceconstant {syntax}          {syntax}
-  \setinterfaceconstant {highlight}       {highlight}
-  \setinterfaceconstant {highlightcolor}  {highlightcolor}
-\stopinterface
-
-%D Name space
-
-\definenamespace
-    [syntaxhighlighting]
-    [\c!type=module,
-     \c!name=syntaxhighlighting,
-     \c!command=\v!yes,
-     setup=\v!list,
-     \c!style=\v!no,
-     \s!parent=syntaxhighlighting]
-
-\appendtoks
-    \defineexternalfilter[\currentsyntaxhighlighting]
-                         [\s!parent=\????syntaxhighlighting\currentexternalfilter,\c!taglabel=\vimtyping at id]%
-    \normalexpanded{\definelinenumbering [\currentsyntaxhighlighting]}%
-    \setevalue{type\currentsyntaxhighlighting file}{\getvalue{process\currentsyntaxhighlighting file}}%
-\to\everydefinesyntaxhighlighting
-
-\appendtoks
-    % \externalfitlterparameter does not work, so it is better to use
-    % \syntaxhighlighting parameter.
-    \normalexpanded{\setuplinenumbering[\currentsyntaxhighlighting]
-         [
-               \c!method=\syntaxhighlightingparameter{\c!number\c!method},
-           \c!conversion=\syntaxhighlightingparameter\c!numberconversion,
-             \c!location=\syntaxhighlightingparameter{\c!number\c!location},
-                \c!style=\syntaxhighlightingparameter\c!numberstyle,
-                \c!color=\syntaxhighlightingparameter\c!numbercolor,
-                \c!width=\syntaxhighlightingparameter{\c!number\c!width},
-                 \c!left=\syntaxhighlightingparameter{\c!number\c!left},
-                \c!right=\syntaxhighlightingparameter{\c!number\c!right},
-              \c!command=\syntaxhighlightingparameter\c!numbercommand,
-             \c!distance=\syntaxhighlightingparameter{\c!number\c!distance},
-                \c!align=\syntaxhighlightingparameter{\c!number\c!align},
-          ]}%
-\to\everysetupsyntaxhighlighting
-
-\def\syntaxhighlighting at id {syntaxhighlighting}
-\edef\t!syntaxhighlighting {\syntaxhighlighting at id}
-
-%D Helper macro
-
-\def\syntaxhighlighting at yes{\v!yes,\v!on}
-
-\startsetups syntaxhighlighting at setup
-
-  \edef\currentsyntaxhighlighting{\currentexternalfilter}
-  \edef\colorscheme at name{\externalfilterparameter\c!alternative}
-
-  \let\SYN\syntaxgroup
-  \edef\HGL{\externalfilterparameter{\c!highlight\c!command}}
-  \let\\\textbackslash
-  \let\{\textbraceleft
-  \let\}\textbraceright
-  \let\SYNBOL\donothing
-  \let\SYNEOL\donothing
-
-  \setupbar[syntaxhighlightline][color=\externalfilterparameter\c!highlightcolor]
-
-  \def\tab##1%
-      {\dorecurse{##1}{\obeyedspace}}%
-
-  \forgetall
-  \usealignparameter\externalfilterparameter
-  \doifinset{\externalfilterparameter\c!option}{\v!packed}
-      {\setupwhitespace[\v!none,\v!flexible]}%
-
-  \doadaptleftskip{\externalfilterparameter\c!margin}%
-
-  \setbreakpoints[compound]% Only works is `option=hyphenated` is set.
-  \doifnotinset{\externalfilterparameter\c!option}{\v!hyphenated}
-      {\language\minusone}%
-
-  \setcatcodetable\externalfilter at minimal_catcodes
-  \expandafter\def\activeendoflinetoken{\strut\par}
-  \activatespacehandler{\????syntaxhighlighting\externalfilterparameter\c!space}
-  \raggedright
-\stopsetups
-
-\starttexdefinition syntaxhighlighting at read_command #1
-    \syntaxhighlighting at linenumbering_start
-    \ReadFile{#1}
-    \syntaxhighlighting at linenumbering_stop
-\stoptexdefinition
-
-\starttexdefinition syntaxhighlighting at linenumbering_start
-   \doifinset{\externalfilterparameter\c!numbering}\syntaxhighlighting at yes
-       {\let\SYNBOL=\syntaxhighlighting_begin_number_lines
-        \let\SYNEOL=\syntaxhighlighting_end_number_lines
-        \startlinenumbering
-          [\currentsyntaxhighlighting]
-          [
-              \c!method=\v!type,
-               \c!start=\externalfilterparameter{\c!number\c!start},
-                \c!step=\externalfilterparameter{\c!number\c!step},
-             \c!continue=\externalfilterparameter{\c!number\c!continue},
-          ]}
-   \dostarttagged\t!syntaxhighlighting\colorscheme at name
-\stoptexdefinition
-
-\starttexdefinition syntaxhighlighting at linenumbering_stop
-  \dostoptagged
-   \doifinset{\externalfilterparameter\c!numbering}\syntaxhighlighting at yes
-      {\stoplinenumbering}
-\stoptexdefinition
-
-\newcount\nofsyntaxhighlightinglines
-
-\starttexdefinition syntaxhighlighting_begin_number_lines
-  \global\advance\nofsyntaxhighlightinglines\plusone
-  \attribute\verbatimlineattribute\nofsyntaxhighlightinglines
-\stoptexdefinition
-
-\starttexdefinition syntaxhighlighting_end_number_lines
-   \attribute\verbatimlineattribute\attributeunsetvalue
-\stoptexdefinition
-
-
-\setupsyntaxhighlighting
-  [\c!tab=4,
-   \c!space=\v!off,
-   \c!lines=\v!fixed,
-   \c!margin=\zeropoint,
-   \c!start=1,
-   \c!stop=0,
-   % \c!syntax=context,
-   \c!alternative=pscolor,
-   \c!before=,
-   \c!after=,
-   \c!spacebefore=\v!none,
-   \c!spaceafter=\v!none,
-   \c!location=\v!paragraph,
-   \c!style=\tttf,
-   \c!color=,
-   \c!align={\v!flushleft,\v!nothyphenated}, 
-   \c!filtercommand=echo, % placeholder
-   \c!continue=yes,
-   \c!read=\v!yes,
-   \c!readcommand=\syntaxhighlighting at read_command,
-   \c!output=\externalfilterinputfile, % placeholder
-   \c!setups=syntaxhighlighting at setup,
-   \c!option=\v!packed, % \v!hyphenated
-   \s!parent=\????externalfilter,
-   % Numbering options
-   \c!numbering=\v!no,
-   \c!number\c!start=1,
-   \c!number\c!step=1,
-   \c!number\c!continue=\v!no,
-   \c!numberconversion=\v!numbers,
-   \c!number\c!method=\v!type, 
-   \c!number\c!location=\v!left,
-   \c!numberstyle=\ttx,
-   \c!numbercolor=,
-   \c!number\c!width=2em,
-   \c!number\c!left=,
-   \c!number\c!right=,
-   \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,
-  ]
-
-% Space handler
-%
-% The space handing code for MkII and MkIV is not consistent. So, we provide our
-% own versions.
-
-\setvalue{\????syntaxhighlighting::\c!lines::\v!split}{\hskip}
-\setvalue{\????syntaxhighlighting::\c!lines::\v!fixed}{\dontleavehmode\kern}
-
-% default
-\setvalue{\????syntaxhighlighting::\c!lines::}{\dontleavehmode\kern}
-
-\def\syntaxhighlighting at split%
-    {\getvalue{\????syntaxhighlighting::\c!lines::\externalfilterparameter\c!lines}}
-
-% Visible space
-\installspacemethod {\????syntaxhighlighting\v!on}
-  {\obeyspaces
-   \unexpanded\def\obeyedspace
-      {\syntaxhighlighting at split\zeropoint\relax
-       \hbox{\normalcontrolspace}%
-       \syntaxhighlighting at split\zeropoint\relax}}%
-
-% Invisible space
-\installspacemethod {\????syntaxhighlighting\v!off}
-  {\obeyspaces
-   \unexpanded\def\obeyedspace
-      {\syntaxhighlighting at split\interwordspace\relax}}
-
-% Default
-\installspacemethod {\????syntaxhighlighting}
-  {\activatespacehandler {\????syntaxhighlighting\v!off}}
-
-% Line highlighting
-
-\definebar[syntaxhighlightline]
-          [\c!order=\v!background,
-   \c!rulethickness=2.5,
-           \c!method=0,
-          \c!offset=1.375,
-        \c!continue=\v!yes,
-           \c!color=\externalfilterparameter\c!highlightcolor,
-          ]
-
-% For backward compatibility
-\def\syntaxhighlighting at namespace {\????syntaxhighlighting}
-\def\syntaxhighlighting at name      {\currentsyntaxhighlighting}
-
-\protect
-
-\stopmodule
-
+%D \module
+%D   [     file=t-syntax-highlight,
+%D      version=2017.07.29,
+%D        title=\CONTEXT\ User Module,
+%D     subtitle=Code syntax highlighting,
+%D       author=Aditya Mahajan,
+%D         date=\currentdate,
+%D    copyright=Aditya Mahajan,
+%D        email=adityam <at> ieee <dot> org,
+%D      license=Simplified BSD License]
+
+\writestatus{loading}{Code syntax highlighting (ver: 2017.07.29)}
+
+\startmodule    [syntax-highlight]
+\usemodule      [syntax-groups]
+\usemodule      [filter] % loads module-catcodes
+
+\unprotect
+
+\startinterface all
+  \setinterfaceconstant {syntax}          {syntax}
+  \setinterfaceconstant {highlight}       {highlight}
+  \setinterfaceconstant {highlightcolor}  {highlightcolor}
+\stopinterface
+
+%D Name space
+
+\definenamespace
+    [syntaxhighlighting]
+    [\c!type=module,
+     \c!name=syntaxhighlighting,
+     \c!command=\v!yes,
+     setup=\v!list,
+     \c!style=\v!no,
+     \s!parent=syntaxhighlighting]
+
+\appendtoks
+    \defineexternalfilter[\currentsyntaxhighlighting]
+                         [\s!parent=\????syntaxhighlighting\currentexternalfilter,\c!taglabel=\vimtyping at id]%
+    \normalexpanded{\definelinenumbering [\currentsyntaxhighlighting]}%
+    \setevalue{type\currentsyntaxhighlighting file}{\getvalue{process\currentsyntaxhighlighting file}}%
+\to\everydefinesyntaxhighlighting
+
+\appendtoks
+    % \externalfitlterparameter does not work, so it is better to use
+    % \syntaxhighlighting parameter.
+    \normalexpanded{\setuplinenumbering[\currentsyntaxhighlighting]
+         [
+               \c!method=\syntaxhighlightingparameter{\c!number\c!method},
+           \c!conversion=\syntaxhighlightingparameter\c!numberconversion,
+             \c!location=\syntaxhighlightingparameter{\c!number\c!location},
+                \c!style=\syntaxhighlightingparameter\c!numberstyle,
+                \c!color=\syntaxhighlightingparameter\c!numbercolor,
+                \c!width=\syntaxhighlightingparameter{\c!number\c!width},
+                 \c!left=\syntaxhighlightingparameter{\c!number\c!left},
+                \c!right=\syntaxhighlightingparameter{\c!number\c!right},
+              \c!command=\syntaxhighlightingparameter\c!numbercommand,
+             \c!distance=\syntaxhighlightingparameter{\c!number\c!distance},
+                \c!align=\syntaxhighlightingparameter{\c!number\c!align},
+          ]}%
+\to\everysetupsyntaxhighlighting
+
+\def\syntaxhighlighting at id {syntaxhighlighting}
+\edef\t!syntaxhighlighting {\syntaxhighlighting at id}
+
+%D Helper macro
+
+\def\syntaxhighlighting at yes{\v!yes,\v!on}
+
+\startsetups syntaxhighlighting at setup
+
+  \edef\currentsyntaxhighlighting{\currentexternalfilter}
+  \edef\colorscheme at name{\externalfilterparameter\c!alternative}
+
+  \let\SYN\syntaxgroup
+  \edef\HGL{\externalfilterparameter{\c!highlight\c!command}}
+  \let\\\textbackslash
+  \let\{\textbraceleft
+  \let\}\textbraceright
+  \let\SYNBOL\donothing
+  \let\SYNEOL\donothing
+
+  \setupbar[syntaxhighlightline][color=\externalfilterparameter\c!highlightcolor]
+
+  \def\tab##1%
+      {\dorecurse{##1}{\obeyedspace}}%
+
+  \forgetall
+  \usealignparameter\externalfilterparameter
+  \doifinset{\externalfilterparameter\c!option}{\v!packed}
+      {\setupwhitespace[\v!none,\v!flexible]}%
+
+  \doadaptleftskip{\externalfilterparameter\c!margin}%
+
+  \setbreakpoints[compound]% Only works is `option=hyphenated` is set.
+  \doifnotinset{\externalfilterparameter\c!option}{\v!hyphenated}
+      {\language\minusone}%
+
+  \setcatcodetable\externalfilter at minimal_catcodes
+  \expandafter\def\activeendoflinetoken{\strut\par}
+  \activatespacehandler{\????syntaxhighlighting\externalfilterparameter\c!space}
+  \raggedright
+\stopsetups
+
+\starttexdefinition syntaxhighlighting at read_command #1
+    \syntaxhighlighting at linenumbering_start
+    \ReadFile{#1}
+    \syntaxhighlighting at linenumbering_stop
+\stoptexdefinition
+
+\starttexdefinition syntaxhighlighting at linenumbering_start
+   \doifinset{\externalfilterparameter\c!numbering}\syntaxhighlighting at yes
+       {\let\SYNBOL=\syntaxhighlighting_begin_number_lines
+        \let\SYNEOL=\syntaxhighlighting_end_number_lines
+        \startlinenumbering
+          [\currentsyntaxhighlighting]
+          [
+              \c!method=\v!type,
+               \c!start=\externalfilterparameter{\c!number\c!start},
+                \c!step=\externalfilterparameter{\c!number\c!step},
+             \c!continue=\externalfilterparameter{\c!number\c!continue},
+          ]}
+   \dostarttagged\t!syntaxhighlighting\colorscheme at name
+\stoptexdefinition
+
+\starttexdefinition syntaxhighlighting at linenumbering_stop
+  \dostoptagged
+   \doifinset{\externalfilterparameter\c!numbering}\syntaxhighlighting at yes
+      {\stoplinenumbering}
+\stoptexdefinition
+
+\newcount\nofsyntaxhighlightinglines
+
+\starttexdefinition syntaxhighlighting_begin_number_lines
+  \global\advance\nofsyntaxhighlightinglines\plusone
+  \attribute\verbatimlineattribute\nofsyntaxhighlightinglines
+\stoptexdefinition
+
+\starttexdefinition syntaxhighlighting_end_number_lines
+   \attribute\verbatimlineattribute\attributeunsetvalue
+\stoptexdefinition
+
+
+\setupsyntaxhighlighting
+  [\c!tab=4,
+   \c!space=\v!off,
+   \c!lines=\v!fixed,
+   \c!margin=\zeropoint,
+   \c!start=1,
+   \c!stop=0,
+   % \c!syntax=context,
+   \c!alternative=pscolor,
+   \c!before=,
+   \c!after=,
+   \c!spacebefore=\v!none,
+   \c!spaceafter=\v!none,
+   \c!location=\v!paragraph,
+   \c!style=\tttf,
+   \c!color=,
+   \c!align={\v!flushleft,\v!nothyphenated}, 
+   \c!filtercommand=echo, % placeholder
+   \c!continue=yes,
+   \c!read=\v!yes,
+   \c!readcommand=\syntaxhighlighting at read_command,
+   \c!output=\externalfilterinputfile, % placeholder
+   \c!setups=syntaxhighlighting at setup,
+   \c!option=\v!packed, % \v!hyphenated
+   \s!parent=\????externalfilter,
+   % Numbering options
+   \c!numbering=\v!no,
+   \c!number\c!start=1,
+   \c!number\c!step=1,
+   \c!number\c!continue=\v!no,
+   \c!numberconversion=\v!numbers,
+   \c!number\c!method=\v!type, 
+   \c!number\c!location=\v!left,
+   \c!numberstyle=\ttx,
+   \c!numbercolor=,
+   \c!number\c!width=2em,
+   \c!number\c!left=,
+   \c!number\c!right=,
+   \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,
+  ]
+
+% Space handler
+%
+% The space handing code for MkII and MkIV is not consistent. So, we provide our
+% own versions.
+
+\setvalue{\????syntaxhighlighting::\c!lines::\v!split}{\hskip}
+\setvalue{\????syntaxhighlighting::\c!lines::\v!fixed}{\dontleavehmode\kern}
+
+% default
+\setvalue{\????syntaxhighlighting::\c!lines::}{\dontleavehmode\kern}
+
+\def\syntaxhighlighting at split%
+    {\getvalue{\????syntaxhighlighting::\c!lines::\externalfilterparameter\c!lines}}
+
+% Visible space
+\installspacemethod {\????syntaxhighlighting\v!on}
+  {\obeyspaces
+   \unexpanded\def\obeyedspace
+      {\mathortext\normalspace
+        {\syntaxhighlighting at split\zeropoint\relax
+         \hbox{\normalcontrolspace}%
+         \syntaxhighlighting at split\zeropoint\relax}}}
+
+% Invisible space
+\installspacemethod {\????syntaxhighlighting\v!off}
+  {\obeyspaces
+   \unexpanded\def\obeyedspace
+      {\mathortext\normalspace
+          {\syntaxhighlighting at split\interwordspace\relax}}}
+
+% Default
+\installspacemethod {\????syntaxhighlighting}
+  {\activatespacehandler {\????syntaxhighlighting\v!off}}
+
+% Line highlighting
+
+\definebar[syntaxhighlightline]
+          [\c!order=\v!background,
+   \c!rulethickness=2.5,
+           \c!method=0,
+          \c!offset=1.375,
+        \c!continue=\v!yes,
+           \c!color=\externalfilterparameter\c!highlightcolor,
+          ]
+
+% For backward compatibility
+\def\syntaxhighlighting at namespace {\????syntaxhighlighting}
+\def\syntaxhighlighting at name      {\currentsyntaxhighlighting}
+
+\protect
+
+\stopmodule
+

Modified: trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex	2017-11-28 22:04:34 UTC (rev 45931)
+++ trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex	2017-11-28 22:13:48 UTC (rev 45932)
@@ -1,6 +1,6 @@
 %D \module
 %D   [     file=t-vim,
-%D      version=2012.05.16,
+%D      version=2017.07.29,
 %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: 2012.05.16)}
+\writestatus{loading}{Vim syntax highlighting (ver: 2017.07.29)}
 
 \startmodule [vim]
 \usemodule   [filter]           % loads module catcodes



More information about the tex-live-commits mailing list