From 8468d42d6a37b14922df1733d45ac698ede5ff90 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 6 Oct 2018 20:56:44 +0000 Subject: latexindent (6oct18) git-svn-id: svn://tug.org/texlive/trunk@48845 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/support/latexindent/README | 2 +- .../doc/support/latexindent/latexindent.pdf | Bin 740178 -> 739952 bytes .../texmf-dist/doc/support/latexindent/title.tex | 2 +- .../scripts/latexindent/LatexIndent/Verbatim.pm | 26 +++++++++++---------- .../scripts/latexindent/LatexIndent/Version.pm | 4 ++-- .../scripts/latexindent/defaultSettings.yaml | 2 +- .../texmf-dist/scripts/latexindent/latexindent.pl | 2 +- 7 files changed, 20 insertions(+), 18 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/support/latexindent/README b/Master/texmf-dist/doc/support/latexindent/README index ca5d51c1672..68818736b74 100644 --- a/Master/texmf-dist/doc/support/latexindent/README +++ b/Master/texmf-dist/doc/support/latexindent/README @@ -1,5 +1,5 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - latexindent.pl, version 3.5.1, 2018-09-15 + latexindent.pl, version 3.5.2, 2018-10-06 PERL script to indent code within environments, and align delimited environments in .tex files. diff --git a/Master/texmf-dist/doc/support/latexindent/latexindent.pdf b/Master/texmf-dist/doc/support/latexindent/latexindent.pdf index 4e7d556041b..5debcbf08bd 100644 Binary files a/Master/texmf-dist/doc/support/latexindent/latexindent.pdf and b/Master/texmf-dist/doc/support/latexindent/latexindent.pdf differ diff --git a/Master/texmf-dist/doc/support/latexindent/title.tex b/Master/texmf-dist/doc/support/latexindent/title.tex index c5bc77b483b..15ff645a534 100644 --- a/Master/texmf-dist/doc/support/latexindent/title.tex +++ b/Master/texmf-dist/doc/support/latexindent/title.tex @@ -8,7 +8,7 @@ sharp corners, enhanced, overlay={\node[anchor=north east,outer sep=2pt] at ([xshift=3cm,yshift=4mm]frame.north east) {\includegraphics[width=3cm]{logo}}; }] - \centering\ttfamily\bfseries latexindent.pl\\[1cm] Version 3.5.1 + \centering\ttfamily\bfseries latexindent.pl\\[1cm] Version 3.5.2 \end{tcolorbox} } \author{Chris Hughes \thanks{and contributors! diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Verbatim.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Verbatim.pm index 836e7ccd88d..f283eb0661c 100644 --- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Verbatim.pm +++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Verbatim.pm @@ -36,24 +36,25 @@ sub find_noindent_block{ if($yesno){ $logger->trace("looking for $noIndentBlock:$yesno environments") if $is_t_switch_active; + (my $noIndentBlockSpec = $noIndentBlock) =~ s/\*/\\*/sg; my $noIndentRegExp = qr/ ( (?!<\\) % - \h* # possible horizontal spaces + \h* # possible horizontal spaces \\begin\{ - $noIndentBlock # environment name captured into $2 - \} # %* \begin{noindentblock} statement + $noIndentBlockSpec # environment name captured into $2 + \} # % \begin{noindentblock} statement ) ( .*? - ) # non-greedy match (body) + ) # non-greedy match (body) ( (?!<\\) - % # % - \h* # possible horizontal spaces - \\end\{$noIndentBlock\} # \end{noindentblock} - ) # %* \end{} statement + % # % + \h* # possible horizontal spaces + \\end\{$noIndentBlockSpec\} # \end{noindentblock} + ) # % \end{} statement /sx; while( ${$self}{body} =~ m/$noIndentRegExp/sx){ @@ -99,17 +100,18 @@ sub find_verbatim_environments{ if($yesno){ $logger->trace("looking for $verbEnv:$yesno environments") if $is_t_switch_active; + (my $verbEnvSpec = $verbEnv) =~ s/\*/\\*/sg; my $verbatimRegExp = qr/ ( \\begin\{ - $verbEnv # environment name captured into $1 - \} # \begin{} statement + $verbEnvSpec # environment name captured into $1 + \} # \begin{} statement ) ( .*? - ) # any character, but not \\begin + ) # any character, but not \\begin ( - \\end\{$verbEnv\}# \end{} statement + \\end\{$verbEnvSpec\} # \end{} statement ) /sx; diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm index 41ca222bb3f..14e84d15c6d 100644 --- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm +++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Version.pm @@ -19,6 +19,6 @@ use warnings; use Exporter qw/import/; our @EXPORT_OK = qw/$versionNumber $versionDate/; -our $versionNumber = '3.5.1'; -our $versionDate = '2018-09-15'; +our $versionNumber = '3.5.2'; +our $versionDate = '2018-10-06'; 1 diff --git a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml index 704ae17418f..69436cd7d8a 100755 --- a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml +++ b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml @@ -1,4 +1,4 @@ -# defaultSettings.yaml for latexindent.pl, version 3.5.1, 2018-09-15 +# defaultSettings.yaml for latexindent.pl, version 3.5.2, 2018-10-06 # a script that aims to # beautify .tex, .sty, .cls files # diff --git a/Master/texmf-dist/scripts/latexindent/latexindent.pl b/Master/texmf-dist/scripts/latexindent/latexindent.pl index 60148de7ab3..6ff6ea348a6 100755 --- a/Master/texmf-dist/scripts/latexindent/latexindent.pl +++ b/Master/texmf-dist/scripts/latexindent/latexindent.pl @@ -1,5 +1,5 @@ #!/usr/bin/env perl -# latexindent.pl, version 3.5.1, 2018-09-15 +# latexindent.pl, version 3.5.2, 2018-10-06 # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -- cgit v1.2.3