* Bug 15808 fixed: [5i] was parsed as [5,i]
[scilab.git] / scilab / modules / ast / src / cpp / parse / flex / scanscilab.ll
index 4dea96a..97bde3b 100644 (file)
@@ -106,6 +106,7 @@ utf4            ({utf41}|{utf42}|{utf43})
 utf             ({utf2}|{utf3}|{utf4})
 id              ((([a-zA-Z_%#?]|{utf})([a-zA-Z_0-9#?$]|{utf})*)|([$]([a-zA-Z_0-9#?$]|{utf})+))
 
+incorrect_number     ({integer}|{number}|{floating_D}|{floating_E}){id}
 
 newline                        ("\r"|"\n"|"\r\n")
 blankline              {spaces}+{newline}
@@ -641,6 +642,10 @@ assign                     "="
   return scan_throw(ID);
 }
 
+<INITIAL,MATRIX>{incorrect_number}             {
+    yyerror("syntax error, unexpected identifier, expecting end of file");
+    return scan_throw(FLEX_ERROR);
+}
 
 <INITIAL,MATRIX,SHELLMODE,BEGINID>{startblockcomment}  {
   yylval.comment = new std::wstring();