texinfo-commits
[Top][All Lists]
Advanced

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

[8443] @inlinefmtifelse missing closing brace


From: gavinsmith0123
Subject: [8443] @inlinefmtifelse missing closing brace
Date: Mon, 29 Oct 2018 15:21:35 -0400 (EDT)

Revision: 8443
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8443
Author:   gavin
Date:     2018-10-29 15:21:35 -0400 (Mon, 29 Oct 2018)
Log Message:
-----------
@inlinefmtifelse missing closing brace

Modified Paths:
--------------
    trunk/tp/Texinfo/Parser.pm
    trunk/tp/t/55conditionals.t

Added Paths:
-----------
    trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed.pl
    trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed_three_arg.pl
    trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed_two_arg.pl

Modified: trunk/tp/Texinfo/Parser.pm
===================================================================
--- trunk/tp/Texinfo/Parser.pm  2018-10-29 18:44:07 UTC (rev 8442)
+++ trunk/tp/Texinfo/Parser.pm  2018-10-29 19:21:35 UTC (rev 8443)
@@ -5153,7 +5153,7 @@
                     my $new_text;
                     ($new_text, $line_nr) = _next_text($self, $line_nr);
                     if (!$new_text) {
-                      # ERROR - unbalanced brace
+                      next NEXT_LINE; # error - unbalanced brace
                     }
                     $line .= $new_text;
                   }

Modified: trunk/tp/t/55conditionals.t
===================================================================
--- trunk/tp/t/55conditionals.t 2018-10-29 18:44:07 UTC (rev 8442)
+++ trunk/tp/t/55conditionals.t 2018-10-29 19:21:35 UTC (rev 8443)
@@ -464,6 +464,15 @@
 strongalias @@alias is wrongly not defined
 @end ifcommandnotdefined
 '],
+['inlineiffmtifelse_not_closed',
+'@inlinefmtifelse{html,
+'],
+['inlineiffmtifelse_not_closed_two_arg',
+'@inlinefmtifelse{html, hhhhh
+'],
+['inlineiffmtifelse_not_closed_three_arg',
+'@inlinefmtifelse{html, hhhhh, ggggg
+'],
 );
 
 for my $test (@test_cases) {

Added: trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed.pl
===================================================================
--- trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed.pl             
                (rev 0)
+++ trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed.pl     
2018-10-29 19:21:35 UTC (rev 8443)
@@ -0,0 +1,74 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'inlineiffmtifelse_not_closed'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'html'
+                }
+              ],
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            },
+            {
+              'contents' => [],
+              'parent' => {},
+              'type' => 'elided'
+            }
+          ],
+          'cmdname' => 'inlinefmtifelse',
+          'contents' => [],
+          'extra' => {
+            'expand_index' => 2,
+            'format' => 'html'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        }
+      ],
+      'parent' => {},
+      'type' => 'paragraph'
+    }
+  ],
+  'type' => 'text_root'
+};
+$result_trees{'inlineiffmtifelse_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inlineiffmtifelse_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inlineiffmtifelse_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = $result_trees{'inlineiffmtifelse_not_closed'}{'contents'}[0]{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed'}{'contents'}[0]{'contents'}[0]{'args'}[1]{'parent'}
 = $result_trees{'inlineiffmtifelse_not_closed'}{'contents'}[0]{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'inlineiffmtifelse_not_closed'}{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed'}{'contents'}[0]{'parent'} = 
$result_trees{'inlineiffmtifelse_not_closed'};
+
+$result_texis{'inlineiffmtifelse_not_closed'} = '@inlinefmtifelse{html,}';
+
+
+$result_texts{'inlineiffmtifelse_not_closed'} = '';
+
+$result_errors{'inlineiffmtifelse_not_closed'} = [
+  {
+    'error_line' => ':1: @inlinefmtifelse missing closing brace
+',
+    'file_name' => '',
+    'line_nr' => 1,
+    'macro' => '',
+    'text' => '@inlinefmtifelse missing closing brace',
+    'type' => 'error'
+  }
+];
+
+
+1;

Added: trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed_three_arg.pl
===================================================================
--- trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed_three_arg.pl   
                        (rev 0)
+++ trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed_three_arg.pl   
2018-10-29 19:21:35 UTC (rev 8443)
@@ -0,0 +1,92 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'inlineiffmtifelse_not_closed_three_arg'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'html'
+                }
+              ],
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            },
+            {
+              'contents' => [],
+              'parent' => {},
+              'type' => 'elided'
+            },
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'ggggg
+'
+                }
+              ],
+              'extra' => {
+                'spaces_before_argument' => ' '
+              },
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            }
+          ],
+          'cmdname' => 'inlinefmtifelse',
+          'contents' => [],
+          'extra' => {
+            'expand_index' => 2,
+            'format' => 'html'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        }
+      ],
+      'parent' => {},
+      'type' => 'paragraph'
+    }
+  ],
+  'type' => 'text_root'
+};
+$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0]{'args'}[1]{'parent'}
 = 
$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0]{'args'}[2]{'contents'}[0]{'parent'}
 = 
$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0]{'args'}[2];
+$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0]{'args'}[2]{'parent'}
 = 
$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed_three_arg'}{'contents'}[0]{'parent'}
 = $result_trees{'inlineiffmtifelse_not_closed_three_arg'};
+
+$result_texis{'inlineiffmtifelse_not_closed_three_arg'} = 
'@inlinefmtifelse{html,, ggggg
+}';
+
+
+$result_texts{'inlineiffmtifelse_not_closed_three_arg'} = 'ggggg
+';
+
+$result_errors{'inlineiffmtifelse_not_closed_three_arg'} = [
+  {
+    'error_line' => ':1: @inlinefmtifelse missing closing brace
+',
+    'file_name' => '',
+    'line_nr' => 1,
+    'macro' => '',
+    'text' => '@inlinefmtifelse missing closing brace',
+    'type' => 'error'
+  }
+];
+
+
+1;

Added: trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed_two_arg.pl
===================================================================
--- trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed_two_arg.pl     
                        (rev 0)
+++ trunk/tp/t/results/conditionals/inlineiffmtifelse_not_closed_two_arg.pl     
2018-10-29 19:21:35 UTC (rev 8443)
@@ -0,0 +1,74 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'inlineiffmtifelse_not_closed_two_arg'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'html'
+                }
+              ],
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            },
+            {
+              'contents' => [],
+              'parent' => {},
+              'type' => 'elided'
+            }
+          ],
+          'cmdname' => 'inlinefmtifelse',
+          'contents' => [],
+          'extra' => {
+            'expand_index' => 2,
+            'format' => 'html'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        }
+      ],
+      'parent' => {},
+      'type' => 'paragraph'
+    }
+  ],
+  'type' => 'text_root'
+};
+$result_trees{'inlineiffmtifelse_not_closed_two_arg'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'inlineiffmtifelse_not_closed_two_arg'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'inlineiffmtifelse_not_closed_two_arg'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'inlineiffmtifelse_not_closed_two_arg'}{'contents'}[0]{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed_two_arg'}{'contents'}[0]{'contents'}[0]{'args'}[1]{'parent'}
 = 
$result_trees{'inlineiffmtifelse_not_closed_two_arg'}{'contents'}[0]{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed_two_arg'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'inlineiffmtifelse_not_closed_two_arg'}{'contents'}[0];
+$result_trees{'inlineiffmtifelse_not_closed_two_arg'}{'contents'}[0]{'parent'} 
= $result_trees{'inlineiffmtifelse_not_closed_two_arg'};
+
+$result_texis{'inlineiffmtifelse_not_closed_two_arg'} = 
'@inlinefmtifelse{html,}';
+
+
+$result_texts{'inlineiffmtifelse_not_closed_two_arg'} = '';
+
+$result_errors{'inlineiffmtifelse_not_closed_two_arg'} = [
+  {
+    'error_line' => ':1: @inlinefmtifelse missing closing brace
+',
+    'file_name' => '',
+    'line_nr' => 1,
+    'macro' => '',
+    'text' => '@inlinefmtifelse missing closing brace',
+    'type' => 'error'
+  }
+];
+
+
+1;




reply via email to

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