From fc5755c062e7116529eb865e51fdaf1d747d1e68 Mon Sep 17 00:00:00 2001 From: jan Iversen <jani@documentfoundation.org> Date: Tue, 3 May 2016 09:36:22 +0000 Subject: genlang .src single line macro Macros do not always end with \\ only those for translation added #define exception to the lex layer. Change-Id: I656bb8776d970288c243302cdc74a0afd975975e --- l10ntools/source/gLexSrc.l | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'l10ntools/source') diff --git a/l10ntools/source/gLexSrc.l b/l10ntools/source/gLexSrc.l index 3c9b2adf76a2..a4bf5a7a73bf 100644 --- a/l10ntools/source/gLexSrc.l +++ b/l10ntools/source/gLexSrc.l @@ -210,8 +210,9 @@ f -"#include".* | -. { +"#define".*[^\\][\r]*\n | | +"#include".* | +. { LOCptr->copySource(yytext); // Just to please compiler. -- cgit