[Top][All Lists]

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

[bug-recutils] Uni-char field names

From: Jose E. Marchesi
Subject: [bug-recutils] Uni-char field names
Date: Fri, 01 Nov 2013 17:15:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi guys.

I found an embarrasing small mess regarding field names composed by a
single character:

- The parser and generally librec was assuming that a field name is of
  the form [a-zA-Z%][a-zA-Z0-9_]* but...

- The selection expressions lexer used {LETTER}[a-zA-Z0-9_]+ and

- The user manual was claiming that field names are of the form

So what I did (change pushed) was to change both the sex lexer and the
user manual so uni-char field names are both supported and documented.
I also added a test to make sure this will still work in the future.

Incidentally '%' is now a special field name... maybe at some point we
will find something interesting to do with it :)

reply via email to

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