From 066942ef22914fe087235100d135190c26d37edc Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Mon, 9 Jul 2018 16:47:58 +0200
Subject: [PATCH] macroprocessor: support Matlab comments. #4

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

diff --git a/src/macro/MacroFlex.ll b/src/macro/MacroFlex.ll
index d872dacb..b33411c2 100644
--- a/src/macro/MacroFlex.ll
+++ b/src/macro/MacroFlex.ll
@@ -72,6 +72,7 @@ CONT \\\\
 %}
 
  // Ignore inline comments
+<INITIAL,STMT,EXPR,FOR_BODY,THEN_BODY,ELSE_BODY>%.*     { yylloc->step(); ECHO; }
 <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} {
-- 
GitLab