Skip to content
Snippets Groups Projects
Commit 066942ef authored by Houtan Bastani's avatar Houtan Bastani
Browse files

macroprocessor: support Matlab comments. #4

parent 27e6d92a
Branches
No related tags found
No related merge requests found
...@@ -72,6 +72,7 @@ CONT \\\\ ...@@ -72,6 +72,7 @@ CONT \\\\
%} %}
// Ignore inline comments // 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,STMT,EXPR,FOR_BODY,THEN_BODY,ELSE_BODY>\/{2}.* { yylloc->step(); ECHO; }
<INITIAL>^{SPC}*@#{SPC}*includepath{SPC}+\"([^\"\r\n:;|<>]*){1}(:[^\"\r\n:;|<>]*)*\"{SPC}*{EOL} { <INITIAL>^{SPC}*@#{SPC}*includepath{SPC}+\"([^\"\r\n:;|<>]*){1}(:[^\"\r\n:;|<>]*)*\"{SPC}*{EOL} {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment