texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/ParserNonXS.pm (%in_simple_text_head


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/ParserNonXS.pm (%in_simple_text_headings_commands), (%simple_text_commands, %simple_text_headings_commands) (%default_valid_nestings): add valid nestings for %in_heading_commands like @thispage in %headings_specification_commands like @everyheading. This should have an effect when %headings_specification_commands commands arguments are parsed.
Date: Sat, 21 Aug 2021 06:41:36 -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 3c63ffc  * tp/Texinfo/ParserNonXS.pm 
(%in_simple_text_headings_commands), (%simple_text_commands, 
%simple_text_headings_commands) (%default_valid_nestings): add valid nestings 
for %in_heading_commands like @thispage in %headings_specification_commands 
like @everyheading.  This should have an effect when 
%headings_specification_commands commands arguments are parsed.
3c63ffc is described below

commit 3c63ffc342c27f91478d7c85f25fb050408731c2
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Aug 21 12:41:22 2021 +0200

    * tp/Texinfo/ParserNonXS.pm (%in_simple_text_headings_commands),
    (%simple_text_commands, %simple_text_headings_commands)
    (%default_valid_nestings): add valid nestings for
    %in_heading_commands like @thispage in %headings_specification_commands
    like @everyheading.  This should have an effect when
    %headings_specification_commands commands arguments are parsed.
---
 ChangeLog                 |  9 +++++++++
 tp/Texinfo/ParserNonXS.pm | 11 ++++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 4e4acce..3123fe9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2021-08-21  Patrice Dumas  <pertusus@free.fr>
 
+       * tp/Texinfo/ParserNonXS.pm (%in_simple_text_headings_commands),
+       (%simple_text_commands, %simple_text_headings_commands)
+       (%default_valid_nestings): add valid nestings for
+       %in_heading_commands like @thispage in %headings_specification_commands
+       like @everyheading.  This should have an effect when
+       %headings_specification_commands commands arguments are parsed.
+
+2021-08-21  Patrice Dumas  <pertusus@free.fr>
+
        * tp/Texinfo/ParserNonXS.pm (_end_line): do not really
        keep the @include in tree when they have been replaced
        to avoid different test results until the XS parser has
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index 8db0123..7710c3d 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -376,18 +376,24 @@ foreach my $not_in_simple_text_command('xref', 'ref', 
'pxref', 'inforef') {
   delete $in_simple_text_commands{$not_in_simple_text_command};
 }
 
+my %in_simple_text_headings_commands = (%in_simple_text_commands,
+                                        %in_heading_commands);
+
 # commands that only accept simple text as argument in any context.
 my %simple_text_commands;
 foreach my $line_command(keys(%line_commands)) {
   if ($line_commands{$line_command} =~ /^\d+$/ 
       or ($line_commands{$line_command} eq 'line' 
           and !($sectioning_commands{$line_command}
-                or $def_commands{$line_command}))
+                or $def_commands{$line_command}
+                or $headings_specification_commands{$line_command}))
       or $line_commands{$line_command} eq 'text') {
     $simple_text_commands{$line_command} = 1;
   }
 }
 
+my %simple_text_headings_commands = (%headings_specification_commands);
+
 my %full_line_commands_no_refs = (%sectioning_commands,
                                   %def_commands);
 
@@ -437,6 +443,9 @@ foreach my $command (keys(%accent_commands)) {
 foreach my $command (keys(%simple_text_commands)) {
   $default_valid_nestings{$command} = \%in_simple_text_commands;
 }
+foreach my $command (keys(%simple_text_headings_commands)) {
+  $default_valid_nestings{$command} = \%in_simple_text_headings_commands;
+}
 foreach my $command (keys(%full_text_commands), keys(%full_line_commands)) {
   $default_valid_nestings{$command} = \%in_full_text_commands;
 }



reply via email to

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