Don't ignore \n after * in comments
Change-Id: Id586843d18e967030ae51d843cee451d2d5b05dc
Test: Unit tests pass, bug sample now works
Bug: 26390569
diff --git a/aidl_language_l.l b/aidl_language_l.l
index 8dbaa2c..546f16f 100644
--- a/aidl_language_l.l
+++ b/aidl_language_l.l
@@ -34,10 +34,10 @@
<COPYING>\n+ { extra_text += yytext; yylloc->lines(yyleng); }
\/\* { extra_text += yytext; BEGIN(LONG_COMMENT); }
-<LONG_COMMENT>\n+ { extra_text += yytext; yylloc->lines(yyleng); }
-<LONG_COMMENT>[^*\n]* { extra_text += yytext; }
-<LONG_COMMENT>\*+[^/] { extra_text += yytext; }
<LONG_COMMENT>\*+\/ { extra_text += yytext; yylloc->step(); BEGIN(INITIAL); }
+<LONG_COMMENT>\*+ { extra_text += yytext; }
+<LONG_COMMENT>\n+ { extra_text += yytext; yylloc->lines(yyleng); }
+<LONG_COMMENT>[^*\n]+ { extra_text += yytext; }
\"[^\"]*\" { yylval->token = new AidlToken(yytext, extra_text);
return yy::parser::token::C_STR; }