We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb881db + 047423a commit 4131be1Copy full SHA for 4131be1
src/OneScript.Language/SyntaxAnalysis/DefaultBslParser.cs
@@ -711,8 +711,15 @@ private void BuildComplexStructureStatement()
711
BuildGotoOperator();
712
break;
713
default:
714
- var expected = _tokenStack.Peek();
715
- AddError(LocalizedErrors.TokenExpected(expected));
+ if (LanguageDef.IsBuiltInFunction(_lastExtractedLexem.Token))
+ {
716
+ AddError(LocalizedErrors.UseBuiltInFunctionAsProcedure());
717
+ }
718
+ else
719
720
+ var expected = _tokenStack.Peek();
721
+ AddError(LocalizedErrors.TokenExpected(expected));
722
723
724
}
725
0 commit comments