summaryrefslogtreecommitdiff
path: root/macros/context/contrib/context-vim
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-15 03:01:18 +0000
committerNorbert Preining <norbert@preining.info>2021-12-15 03:01:18 +0000
commit0efaa39c6d0b17b58df9a68ae1319ea20aaabc28 (patch)
tree677b276738cd1c52e8778f985da1705c64a4b729 /macros/context/contrib/context-vim
parent829614e28f2055883ff74da11eb4e5e57d199be3 (diff)
CTAN sync 202112150301
Diffstat (limited to 'macros/context/contrib/context-vim')
-rw-r--r--macros/context/contrib/context-vim/VERSION2
-rw-r--r--macros/context/contrib/context-vim/doc/context/third/vim/vim.txt18
-rw-r--r--macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkiv8
-rw-r--r--macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkxl8
4 files changed, 24 insertions, 12 deletions
diff --git a/macros/context/contrib/context-vim/VERSION b/macros/context/contrib/context-vim/VERSION
index 1664ef53fc..207ae307b6 100644
--- a/macros/context/contrib/context-vim/VERSION
+++ b/macros/context/contrib/context-vim/VERSION
@@ -1 +1 @@
-2021.09.05
+2021.12.13
diff --git a/macros/context/contrib/context-vim/doc/context/third/vim/vim.txt b/macros/context/contrib/context-vim/doc/context/third/vim/vim.txt
index e42a2bdab8..af6bfdb74a 100644
--- a/macros/context/contrib/context-vim/doc/context/third/vim/vim.txt
+++ b/macros/context/contrib/context-vim/doc/context/third/vim/vim.txt
@@ -315,8 +315,9 @@ will effect all the listings on that page, _even those defined earlier!_
- To change the width of the box in which the numbers are typeset, use
`numberwidth=...` option. Default value is `2em`.
-- To change the distance between the numbers and the rest of the code, use
- `numberdistance=...` option. Default value is `0.5em`.
+- By default, the numbers are placed on the left of the text area. To change
+ the distance between the numbers and the text area, use `numberdistance=...`
+ option. Default value is `0.5em`.
- To change the conversion of numbers, use `numberconversion=...` option.
Default value is `numbers`.
@@ -411,8 +412,19 @@ of each line:
margin=<dimen>,
...]
-where `<dimen>` is a valid TeX dimension.
+where `<dimen>` is a valid TeX dimension. Note that this does not change the
+location of the line numbers. So, if you are using line numbers along with
+margin, also change the `numberdistance`. For example,
+
+ \definevimtyping
+ [...]
+ [...
+ margin=4em,
+ numberdistance=-3.5em,
+ ...]
+
+will place the numbers `4em - 3.5em = 0.5em` to the left of the code.
diff --git a/macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkiv b/macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkiv
index 23466fb17d..9b759bab78 100644
--- a/macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkiv
+++ b/macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkiv
@@ -1,6 +1,6 @@
%D \module
%D [ file=t-syntax-highlight,
-%D version=2020.06.29,
+%D version=2021.12.13,
%D title=\CONTEXT\ User Module,
%D subtitle=Code syntax highlighting,
%D author=Aditya Mahajan,
@@ -9,13 +9,13 @@
%D email=adityam <at> ieee <dot> org,
%D license=Simplified BSD License]
-\writestatus{loading}{Code syntax highlighting (ver: 2020.06.29)}
+\writestatus{loading}{Code syntax highlighting (ver: 2021.12.13)}
\startmodule [syntax-highlight]
\usemodule [syntax-groups]
\usemodule [filter] % loads module-catcodes
-\unprotect
+\unprotectmodulecatcodes
\startinterface all
\setinterfaceconstant {syntax} {syntax}
@@ -256,7 +256,7 @@
\def\syntaxhighlighting@namespace {\????syntaxhighlighting}
\def\syntaxhighlighting@name {\currentsyntaxhighlighting}
-\protect
+\protectmodulecatcodes
\stopmodule
diff --git a/macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkxl b/macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkxl
index 8fadebb780..450ffb51ff 100644
--- a/macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkxl
+++ b/macros/context/contrib/context-vim/tex/context/third/vim/t-syntax-highlight.mkxl
@@ -1,6 +1,6 @@
%D \module
%D [ file=t-syntax-highlight,
-%D version=2021.05.31,
+%D version=2021.12.13,
%D title=\CONTEXT\ User Module,
%D subtitle=Code syntax highlighting,
%D author=Aditya Mahajan,
@@ -9,13 +9,13 @@
%D email=adityam <at> ieee <dot> org,
%D license=Simplified BSD License]
-\writestatus{loading}{Code syntax highlighting (ver: 2021.05.31)}
+\writestatus{loading}{Code syntax highlighting (ver: 2021.12.13)}
\startmodule [syntax-highlight]
\usemodule [syntax-groups]
\usemodule [filter] % loads module-catcodes
-\unprotect
+\unprotectmodulecatcodes
\startinterface all
\setinterfaceconstant {syntax} {syntax}
@@ -257,7 +257,7 @@
\def\syntaxhighlighting@namespace {\????syntaxhighlighting}
\def\syntaxhighlighting@name {\currentsyntaxhighlighting}
-\protect
+\protectmodulecatcodes
\stopmodule