+2004-10-01 Guido Flohr <guido@imperia.net>
+
+ * x-perl.c (x_perl_prelex): Recognize function names starting with '-'.
+ Reported by Ryan Anderson <ryan@autoweb.net>.
+
2004-09-16 Bruno Haible <bruno@clisp.org>
* format.h (formatstring_error_logger_t): Modify decl for GCC <= 3.0.
/* xgettext Perl backend.
- Copyright (C) 2002-2003 Free Software Foundation, Inc.
+ Copyright (C) 2002-2004 Free Software Foundation, Inc.
This file was written by Guido Flohr <guido@imperia.net>, 2002-2003.
tp->type = token_type_dereference;
return;
}
+ else if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'))
+ {
+ /* One of the -X (filetest) functions. We play safe
+ and accept all alphabetical characters here. */
+ tp->type = token_type_other;
+ return;
+ }
phase1_ungetc (c);
tp->type = token_type_other;
prefer_division_over_regexp = false;
+2004-10-01 Guido Flohr <guido@imperia.net>
+
+ * xgettext-perl-4: Add test case with '-s' function.
+ Reported by Ryan Anderson <ryan@autoweb.net>.
+
2004-09-11 Bruno Haible <bruno@clisp.org>
* msginit-1: New file.
print `ls $0`;
print qx;ls $0;;
+if (!defined($size = -s $filename)) {
+ # The above s is part of the function -s, not
+ # the substitution operator!
+}
+
# The rest requires a Unicode aware Perl.
require 5.006;
print "\U\x70\LO\154\x{69}\x{004E}a \Q\lRu\LLeS\E\041\n";