From c124a4bbc9ed8a4b9cb27bc70750de20b8a3edc5 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 18 Jun 2023 18:43:31 +0200 Subject: [PATCH] gnu: Add texlive-context-vim. * gnu/packages/tex.scm (texlive-context-vim): New variable. --- gnu/packages/tex.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 6afb2b07a4..7312b12381 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -10627,6 +10627,32 @@ (define-public texlive-context-typescripts a @file{.mkii} and a @file{.mkiv} version.") (license license:gpl2))) +(define-public texlive-context-vim + (package + (name "texlive-context-vim") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/context/third/vim/" + "tex/context/third/vim/") + (base32 + "03cwdqkrx6bgcikmyxrwkyac3jmz7i50cavgb6r8b26zrsm522ca"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (propagated-inputs (list texlive-context texlive-context-filter)) + (home-page "https://ctan.org/pkg/context-vim") + (synopsis "Generate ConTeXt syntax highlighting code from Vim") + (description + "ConTeXt has excellent pretty printing capabilities for many languages. +The code for pretty printing is written in TeX, and due to catcode juggling, +such verbatim typesetting is perhaps the trickiest part of TeX. This makes it +difficult for a normal user to define syntax highlighting rules for a new +language. This module takes the onus of defining syntax highlighting rules +away from the user and uses Vim editor to generate the syntax highlighting. +There is a helper @file{2context.vim} script to do the syntax parsing in +Vim.") + (license license:bsd-2))) + (define-public texlive-beamer (package (name "texlive-beamer")