Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"icon": "images/vba-lsp-icon.png",
"author": "SSlinky",
"license": "MIT",
"version": "1.5.8",
"version": "1.5.9",
"repository": {
"type": "git",
"url": "https://github.com/SSlinky/VBA-LanguageServer"
Expand Down
2 changes: 1 addition & 1 deletion server/src/antlr/vba.g4
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ constantName
// ;

constDeclaration
: variableModifier? CONST wsc constItemList
: (variableModifier wsc)? CONST wsc constItemList
;

constItemList
Expand Down
16 changes: 16 additions & 0 deletions test/fixtures/ScopeDiagnostics.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Attribute VB_Name = "ScopeDiagnostics"

Option Explicit

Private Const ABC As Long = 0

Public Enum XfaskofeaFoo
Enum1 = 2 ^ 1
Bar = 2 ^ 2
Bar = 2 ^ 3
End Enum

Public Sub XfaskofeaFoo(Optional test_param As Variant = -0.1)
Attribute XfaskofeaFoo.VB_Description = "docstring."
Call SomeSub(param, -0.15)
End Sub