From 17dd443341b55374feb011c161c21296ff0bd80b Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 23 Jan 2018 17:13:46 +0100 Subject: [PATCH] macroprocessor: allow inline comments. closes #1550 --- macro/MacroFlex.ll | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macro/MacroFlex.ll b/macro/MacroFlex.ll index 5125ffa7..57776709 100644 --- a/macro/MacroFlex.ll +++ b/macro/MacroFlex.ll @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2017 Dynare Team + * Copyright (C) 2008-2018 Dynare Team * * This file is part of Dynare. * @@ -71,6 +71,8 @@ CONT \\\\ yylloc->step(); %} +["/"]["/"].* + ^{SPC}*@#{SPC}*includepath{SPC}+\"([^\"\r\n:;|<>]*){1}(:[^\"\r\n:;|<>]*)*\"{SPC}*{EOL} { yylloc->lines(1); yylloc->step();