From: Maxime Curioni Date: 2006-06-04T08:08:33+09:00 Subject: "numeric literal without digits" rake update_po error First off, I am using ruby 1.8.4 installed under Ubuntu Breezy Badger, with ruby-gettext 1.5.0 installed as a gem. I have found a weird behavior with rgettext parsing certain .rb files. Whenever rgettext encounters a file containing an array whose first element is being accessed in the code, I get the following error: "numeric literal without digits" For example, if I include the following code: // test.rb line ... 10 a = [1,2] 11 a[0] ... and I run : > rgettext test.rb I get the following result # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2006-06-04 00:47+0200\n" "PO-Revision-Date: 2006-06-04 00:47+0200\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" numeric literal without digits Exit 1 If I remove that piece of code, it all runs smoothly. Would anyone know what that error could be caused by ? Is there any way to fix it ? -- Posted via http://www.ruby-forum.com/.