texinfo-commits
[Top][All Lists]
Advanced

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

[7134] remove args_index for invalid syntax too


From: Gavin D. Smith
Subject: [7134] remove args_index for invalid syntax too
Date: Sun, 24 Apr 2016 14:53:32 +0000

Revision: 7134
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7134
Author:   gavin
Date:     2016-04-24 14:53:32 +0000 (Sun, 24 Apr 2016)
Log Message:
-----------
remove args_index for invalid syntax too

Modified Paths:
--------------
    trunk/tp/Texinfo/Parser.pm
    trunk/tp/t/results/macro/bad_argument.pl
    trunk/tp/t/results/macro/bad_formal_arg.pl
    trunk/tp/t/results/value_and_macro/value_in_macro_formal_arg.pl
    trunk/tp/t/results/xml_tests/macro_and_args.pl

Modified: trunk/tp/Texinfo/Parser.pm
===================================================================
--- trunk/tp/Texinfo/Parser.pm  2016-04-24 14:45:07 UTC (rev 7133)
+++ trunk/tp/Texinfo/Parser.pm  2016-04-24 14:53:32 UTC (rev 7134)
@@ -3828,6 +3828,8 @@
                                        = $current->{'extra'}->{'args_index'};
                   delete $current->{'extra'}->{'args_index'};
                 }
+              } elsif (defined $current->{'extra'}->{'args_index'}) {
+                delete $current->{'extra'}->{'args_index'};
               }
             }
           }

Modified: trunk/tp/t/results/macro/bad_argument.pl
===================================================================
--- trunk/tp/t/results/macro/bad_argument.pl    2016-04-24 14:45:07 UTC (rev 
7133)
+++ trunk/tp/t/results/macro/bad_argument.pl    2016-04-24 14:53:32 UTC (rev 
7134)
@@ -130,9 +130,6 @@
       'extra' => {
         'arg_line' => ' aftername {ggg} more
 ',
-        'args_index' => {
-          'ggg' => 0
-        },
         'invalid_syntax' => 1,
         'spaces_after_command' => {
           'extra' => {

Modified: trunk/tp/t/results/macro/bad_formal_arg.pl
===================================================================
--- trunk/tp/t/results/macro/bad_formal_arg.pl  2016-04-24 14:45:07 UTC (rev 
7133)
+++ trunk/tp/t/results/macro/bad_formal_arg.pl  2016-04-24 14:53:32 UTC (rev 
7134)
@@ -48,10 +48,6 @@
       'extra' => {
         'arg_line' => ' bad  { , not_empty}
 ',
-        'args_index' => {
-          '' => 0,
-          'not_empty' => 1
-        },
         'invalid_syntax' => 1,
         'spaces_after_command' => {
           'extra' => {
@@ -112,10 +108,6 @@
       'extra' => {
         'arg_line' => ' badspace{first, in 2arg}
 ',
-        'args_index' => {
-          'first' => 0,
-          'in 2arg' => 1
-        },
         'invalid_syntax' => 1,
         'spaces_after_command' => {
           'extra' => {
@@ -197,9 +189,6 @@
       'extra' => {
         'arg_line' => ' abar {:::}
 ',
-        'args_index' => {
-          ':::' => 0
-        },
         'invalid_syntax' => 1,
         'spaces_after_command' => {
           'extra' => {

Modified: trunk/tp/t/results/value_and_macro/value_in_macro_formal_arg.pl
===================================================================
--- trunk/tp/t/results/value_and_macro/value_in_macro_formal_arg.pl     
2016-04-24 14:45:07 UTC (rev 7133)
+++ trunk/tp/t/results/value_and_macro/value_in_macro_formal_arg.pl     
2016-04-24 14:53:32 UTC (rev 7134)
@@ -72,10 +72,6 @@
       'extra' => {
         'arg_line' => ' testvalue { arg , address@hidden }
 ',
-        'args_index' => {
-          'arg' => 0,
-          'address@hidden' => 1
-        },
         'invalid_syntax' => 1,
         'spaces_after_command' => {
           'extra' => {

Modified: trunk/tp/t/results/xml_tests/macro_and_args.pl
===================================================================
--- trunk/tp/t/results/xml_tests/macro_and_args.pl      2016-04-24 14:45:07 UTC 
(rev 7133)
+++ trunk/tp/t/results/xml_tests/macro_and_args.pl      2016-04-24 14:53:32 UTC 
(rev 7134)
@@ -82,11 +82,6 @@
       'extra' => {
         'arg_line' => ' bad { ggg"@@^_ ff, nnn_b, ccc v}
 ',
-        'args_index' => {
-          'ccc v' => 2,
-          'ggg"@@^_ ff' => 0,
-          'nnn_b' => 1
-        },
         'invalid_syntax' => 1,
         'spaces_after_command' => {
           'extra' => {




reply via email to

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