diff --git a/src/VisualStudio/XSharpCodeModelXs/Parser/XsParser.prg b/src/VisualStudio/XSharpCodeModelXs/Parser/XsParser.prg index ddabe30f3f..49783943ba 100644 --- a/src/VisualStudio/XSharpCodeModelXs/Parser/XsParser.prg +++ b/src/VisualStudio/XSharpCodeModelXs/Parser/XsParser.prg @@ -797,6 +797,8 @@ CLASS XsParser IMPLEMENTS VsParser.IErrorListener CASE XSharpLexer.CONST CASE XSharpLexer.DIM CASE XSharpLexer.ARRAY + CASE XSharpLexer.FUNCTION // local function declaration - must not be treated as LOCAL modifier + CASE XSharpLexer.PROCEDURE // local procedure declaration - must not be treated as LOCAL modifier return TRUE END SWITCH RETURN FALSE