From c6243844d63b2ff544a53b37dc611567522f1d64 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Mon, 9 Jul 2018 15:26:51 +0300 Subject: [PATCH] Workaround for ALT flex changes (ALT#35141) Since flex-2.5.37-alt2 the ALT flex package contains a change which makes the generated parser code different from the upstream version of flex: the `%{` ... `%}` enclosed code from the rules section is inserted before the `yylloc` local variable is initialized. As a workaround, initialize `yylloc` explicitly using the undocumented function parameter name `yylloc_param`. --- lexer/theme-lexer.l | 1 + 1 file changed, 1 insertion(+) diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index de53f54..1f85e00 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -241,6 +241,7 @@ CONFIGURATION (?i:configuration) %% %{ +yylloc = yylloc_param; /* workaround for flex ALT#35141 */ YY_LLOC_START %} %{ -- 2.10.5