From 627021e461901f7bc4b668424e9230678362014e Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 2 Dec 2001 09:23:41 +0000 Subject: [PATCH] Updates for using gedcom_lex_common.c --- gedcom_1byte.lex | 4 +++- gedcom_hilo.lex | 4 +++- gedcom_lohi.lex | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gedcom_1byte.lex b/gedcom_1byte.lex index 4a4b3ec..a4a5659 100644 --- a/gedcom_1byte.lex +++ b/gedcom_1byte.lex @@ -13,6 +13,8 @@ %{ #undef IN_LEX /* include only a specific part of the following file */ #include "gedcom_lex_common.c" + +static size_t encoding_width = 1; %} %s NORMAL @@ -46,7 +48,7 @@ ACTION_BEFORE_REGEXPS %} -{gen_delim}* /* ignore leading whitespace (also tabs) */ +{gen_delim}* ACTION_INITIAL_WHITESPACE 0{digit}+ ACTION_0_DIGITS diff --git a/gedcom_hilo.lex b/gedcom_hilo.lex index 418802b..5c674a7 100644 --- a/gedcom_hilo.lex +++ b/gedcom_hilo.lex @@ -16,6 +16,8 @@ %{ #undef IN_LEX /* include only a specific part of the following file */ #include "gedcom_lex_common.c" + +static size_t encoding_width = 2; %} %s NORMAL @@ -49,7 +51,7 @@ ACTION_BEFORE_REGEXPS %} -{gen_delim}* /* ignore leading whitespace (also tabs) */ +{gen_delim}* ACTION_INITIAL_WHITESPACE \x00[0]{digit}+ ACTION_0_DIGITS diff --git a/gedcom_lohi.lex b/gedcom_lohi.lex index 41d97ad..badd835 100644 --- a/gedcom_lohi.lex +++ b/gedcom_lohi.lex @@ -16,6 +16,8 @@ %{ #undef IN_LEX /* include only a specific part of the following file */ #include "gedcom_lex_common.c" + +static size_t encoding_width = 2; %} %s NORMAL @@ -49,7 +51,7 @@ ACTION_BEFORE_REGEXPS %} -{gen_delim}* /* ignore leading whitespace (also tabs) */ +{gen_delim}* ACTION_INITIAL_WHITESPACE \x00[0]{digit}+ ACTION_0_DIGITS -- 2.30.2