Skip to content

Commit e5ea2dc

Browse files
committed
Remove unknown from module declarations
1 parent 02aaffa commit e5ea2dc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

server/src/antlr/vba.g4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ moduleDeclarationsElement:
5252
comment
5353
| declareStmt
5454
| implementsStmt
55-
| moduleOption
56-
| unknownLine;
55+
| moduleOption;
5756

5857
macroStmt: macroConstStmt | macroIfThenElseStmt;
5958

server/src/project/parser/vbaSyntaxParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class SyntaxParser {
3939
// });
4040

4141
// Refuse to do anything that seems like too much work.
42-
if (document.textDocument.lineCount > 1000) {
42+
if (document.textDocument.lineCount > 1500) {
4343
// TODO: Make this an option that people can increase or decrease.
4444
console.log(`Document oversize: ${document.textDocument.lineCount} lines.`);
4545
console.warn(`Syntax parsing has been disabled to prevent crashing.`);

0 commit comments

Comments
 (0)