using System;
using System.Text;
using System.Collections.Generic;
-using System.IO;
using System.Globalization;
using System.Diagnostics;
AddKeyword ("while", Token.WHILE);
AddKeyword ("partial", Token.PARTIAL);
AddKeyword ("where", Token.WHERE);
+ AddKeyword ("async", Token.ASYNC);
// LINQ keywords
AddKeyword ("from", Token.FROM);
res = -1;
break;
+
+ case Token.ASYNC:
+ if (parsing_block > 0 || RootContext.Version != LanguageVersion.Future) {
+ res = -1;
+ break;
+ }
+ break;
}
return res;
Report.RegisterWarningRegion (loc).WarningEnable (loc, code, Report);
}
}
- } while (code >= 0 && c != '\n');
+ } while (code >= 0 && c != '\n' && c != -1);
}
return;