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.
1 parent 75d24e5 commit ef96799Copy full SHA for ef96799
server/src/antlr/vba.g4
@@ -427,7 +427,7 @@ constantName
427
// ;
428
429
constDeclaration
430
- : variableModifier? CONST wsc constItemList
+ : (variableModifier wsc)? CONST wsc constItemList
431
;
432
433
constItemList
test/fixtures/ScopeDiagnostics.bas
@@ -0,0 +1,16 @@
1
+Attribute VB_Name = "ScopeDiagnostics"
2
+
3
+Option Explicit
4
5
+Private Const ABC As Long = 0
6
7
+Public Enum XfaskofeaFoo
8
+ Enum1 = 2 ^ 1
9
+ Bar = 2 ^ 2
10
+ Bar = 2 ^ 3
11
+End Enum
12
13
+Public Sub XfaskofeaFoo()
14
+Attribute XfaskofeaFoo.VB_Description = "docstring."
15
16
+End Sub
0 commit comments