From 27e6d92af10d18d2c83bab649e99f8b8ecd345c5 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Mon, 9 Jul 2018 16:41:33 +0200
Subject: [PATCH] =?UTF-8?q?macroprocessor:=20don=E2=80=99t=20interpret=20i?=
 =?UTF-8?q?nline=20comments=20yet=20put=20them=20to=20output=20(ignored=20?=
 =?UTF-8?q?by=20dynare=20preprocessor,=20but=20printed=20in=20macro=20expa?=
 =?UTF-8?q?nded=20file).=20#4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/macro/MacroFlex.ll | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/macro/MacroFlex.ll b/src/macro/MacroFlex.ll
index 2a5f088f..d872dacb 100644
--- a/src/macro/MacroFlex.ll
+++ b/src/macro/MacroFlex.ll
@@ -72,7 +72,7 @@ CONT \\\\
 %}
 
  // Ignore inline comments
-<STMT,EXPR,FOR_BODY,THEN_BODY,ELSE_BODY>\/{2}.*
+<INITIAL,STMT,EXPR,FOR_BODY,THEN_BODY,ELSE_BODY>\/{2}.* { yylloc->step(); ECHO; }
 
 <INITIAL>^{SPC}*@#{SPC}*includepath{SPC}+\"([^\"\r\n:;|<>]*){1}(:[^\"\r\n:;|<>]*)*\"{SPC}*{EOL} {
                               yylloc->lines(1);
-- 
GitLab