Skip to content

Commit 5f2fb32

Browse files
authored
Merge pull request #77 from SSlinky/hotfix
Hotfix error reset
2 parents 4e1e02c + 21a2845 commit 5f2fb32

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"icon": "images/vba-lsp-icon.png",
77
"author": "SSlinky",
88
"license": "MIT",
9-
"version": "1.5.10",
9+
"version": "1.5.11",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/SSlinky/VBA-LanguageServer"

server/src/antlr/vba.g4

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ classBeginBlock
4242
;
4343

4444
beginBlockConfigElement
45-
: endOfLine+ (OBJECT '.')? '_'? ambiguousIdentifier WS? eqOperator WS? (expression | FILEOFFSET)
45+
: endOfLine+ (OBJECT '.')? '_'? ambiguousIdentifier WS? eqOperator WS? (
46+
expression
47+
| FILEOFFSET
48+
)
4649
| formBeginBlock
4750
| beginPropertyBlock
4851
;
@@ -858,6 +861,10 @@ identifierStatementLabel
858861
: ambiguousIdentifier
859862
;
860863

864+
resetNumberLable
865+
: MINUS INTEGERLITERAL
866+
;
867+
861868
lineNumberLabel
862869
: INTEGERLITERAL
863870
;
@@ -1305,6 +1312,7 @@ onErrorStatement
13051312
errorBehavior
13061313
: RESUME wsc NEXT
13071314
| GOTO wsc? statementLabel
1315+
| GOTO wsc? resetNumberLable
13081316
;
13091317

13101318
// 5.4.4.2 Resume Statement

0 commit comments

Comments
 (0)