texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/Texinfo/XS/parsetexi/command_data.txt, tp/T


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/parsetexi/command_data.txt, tp/Texinfo/XS/parsetexi/commands.h: add BLOCK_preformatted and BLOCK_math for consistency with perl parser.
Date: Sun, 02 Oct 2022 07:09:09 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new bb6756e5af  * tp/Texinfo/XS/parsetexi/command_data.txt,  
tp/Texinfo/XS/parsetexi/commands.h: add BLOCK_preformatted and  BLOCK_math for 
consistency with perl parser.
bb6756e5af is described below

commit bb6756e5af91c41785b4f1f28acdc3c9938e902d
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Oct 2 13:08:57 2022 +0200

     * tp/Texinfo/XS/parsetexi/command_data.txt,
     tp/Texinfo/XS/parsetexi/commands.h: add BLOCK_preformatted and
     BLOCK_math for consistency with perl parser.
---
 ChangeLog                                |  6 ++++++
 tp/Texinfo/Common.pm                     |  8 ++++++++
 tp/Texinfo/XS/parsetexi/command_data.txt | 19 ++++++++++---------
 tp/Texinfo/XS/parsetexi/commands.h       |  4 ++++
 4 files changed, 28 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 829cc1e6ed..47dc318f70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-10-02  Patrice Dumas  <pertusus@free.fr>
+
+        * tp/Texinfo/XS/parsetexi/command_data.txt,
+        tp/Texinfo/XS/parsetexi/commands.h: add BLOCK_preformatted and
+        BLOCK_math for consistency with perl parser.
+
 2022-10-01  Gavin Smith  <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/Convert/LaTeX.pm (_convert) <@\>: Output as \backslash{}
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index 2e880958ee..57ec339970 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -3009,6 +3009,10 @@ commands like C<@table> in which the C<@item> argument 
is on its line;
 menu @-commands, C<@menu>, C<@detailmenu>
 and C<@direntry>;
 
+=item I<math>
+
+Math block commands, like C<@displaymath>.
+
 =item I<multitable>
 
 C<@multitable>;
@@ -3017,6 +3021,10 @@ C<@multitable>;
 
 The remaining block commands.
 
+=item I<preformatted>
+
+Commands whose content should not be filled, like C<@example> or C<@display>.
+
 =item I<raw>
 
 @-commands that have no expansion
diff --git a/tp/Texinfo/XS/parsetexi/command_data.txt 
b/tp/Texinfo/XS/parsetexi/command_data.txt
index a183b6323e..5baf912371 100644
--- a/tp/Texinfo/XS/parsetexi/command_data.txt
+++ b/tp/Texinfo/XS/parsetexi/command_data.txt
@@ -421,14 +421,14 @@ copying                 block,global_unique             
BLOCK_region
 documentdescription     block,global_unique             BLOCK_region
 
 # preformatted commands
-example                 block,preformatted,preformatted_code,variadic
-smallexample            block,preformatted,preformatted_code
-lisp                    block,preformatted,preformatted_code
-smalllisp               block,preformatted,preformatted_code
-display                 block,preformatted
-smalldisplay            block,preformatted
-format                  block,preformatted
-smallformat             block,preformatted
+example                 block,preformatted,preformatted_code,variadic   
BLOCK_preformatted
+smallexample            block,preformatted,preformatted_code            
BLOCK_preformatted
+lisp                    block,preformatted,preformatted_code            
BLOCK_preformatted
+smalllisp               block,preformatted,preformatted_code            
BLOCK_preformatted
+display                 block,preformatted              BLOCK_preformatted
+smalldisplay            block,preformatted              BLOCK_preformatted
+format                  block,preformatted              BLOCK_preformatted
+smallformat             block,preformatted              BLOCK_preformatted
 
 # format raw commands
 html                    block                           BLOCK_format_raw
@@ -452,7 +452,8 @@ quotation               block                           
BLOCK_quotation       1
 smallquotation          block                           BLOCK_quotation       1
 
 float                   block                           BLOCK_float           2
-displaymath             block,math
+
+displaymath             block,math                      BLOCK_math
 
 ##################################################################
 # Conditional commands
diff --git a/tp/Texinfo/XS/parsetexi/commands.h 
b/tp/Texinfo/XS/parsetexi/commands.h
index e6a8615725..a0667ae7be 100644
--- a/tp/Texinfo/XS/parsetexi/commands.h
+++ b/tp/Texinfo/XS/parsetexi/commands.h
@@ -127,6 +127,10 @@ void wipe_user_commands (void);
 #define BLOCK_format_raw -10
 /* not used in code but consistent with type in perl hash */
 #define BLOCK_def -11
+/* not used in code but consistent with type in perl hash */
+#define BLOCK_preformatted -12
+/* not used in code but consistent with type in perl hash */
+#define BLOCK_math -13
 
 /* Types of brace command (CF_brace). */
 #define BRACE_arguments 1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]