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 (_parse_texi): avoid


From: Gavin D. Smith
Subject: branch master updated: * tp/Texinfo/ParserNonXS.pm (_parse_texi): avoid "invalid interpolation" error in error message.
Date: Sat, 28 Aug 2021 15:44:22 -0400

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

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 98c0308  * tp/Texinfo/ParserNonXS.pm (_parse_texi): avoid "invalid 
interpolation" error in error message.
98c0308 is described below

commit 98c030823e2f4e770b17ca285a47dce160df0059
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Aug 28 20:44:08 2021 +0100

    * tp/Texinfo/ParserNonXS.pm (_parse_texi): avoid "invalid
    interpolation" error in error message.
---
 ChangeLog                 | 5 +++++
 tp/Texinfo/ParserNonXS.pm | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 310eb89..06a9afd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-08-28  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/ParserNonXS.pm (_parse_texi): avoid "invalid
+       interpolation" error in error message.
+
 2021-08-28  Stephen Gildea <stepheng-texinfo@gildea.com> (tiny change)
 
        texinfo.tex: Simplify time-stamp local variables
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index 54d59ec..80d2820 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -4161,7 +4161,8 @@ sub _parse_texi($;$)
               push @{$current->{'contents'}}, $new_element;
             }
           } else {
-            $self->line_error(__("bad syntax for \@$command"), $line_nr);
+            $self->line_error (sprintf(__("bad syntax for %c%s"), ord('@'),
+                                 $command), $line_nr);
           }
           next;
         }



reply via email to

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