Skip to content

Commit 42c92d1

Browse files
author
Andrin Meier
committed
add declare line continuation regression test (#1056)
1 parent 02f8f5b commit 42c92d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

RubberduckTests/Grammar/VBAParserTests.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@ Sub Test()
124124
AssertTree(parseResult.Item1, parseResult.Item2, "//iCS_B_MemberProcedureCall");
125125
}
126126

127+
[TestMethod]
128+
public void TestDeclareLineContinuation()
129+
{
130+
string code = @"
131+
Private Declare Function ABC Lib ""shell32.dll"" Alias _
132+
""ShellExecuteA""(ByVal a As Long, ByVal b As String, _
133+
ByVal c As String, ByVal d As String, ByVal e As String, ByVal f As Long) As Long";
134+
var parseResult = Parse(code);
135+
AssertTree(parseResult.Item1, parseResult.Item2, "//declareStmt");
136+
}
137+
127138
[TestMethod]
128139
public void TestEraseStmt()
129140
{

0 commit comments

Comments
 (0)