Skip to content

Commit 4fa3493

Browse files
committed
Add using use case
1 parent 8283c51 commit 4fa3493

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

tests/baselines/using.baseline.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
original file
2+
-----------------------------------
3+
fun printPassCapable(item) =
4+
using(msg = aa)
5+
item
6+
-----------------------------------
7+
8+
Grammar: DataWeave.tmLanguage
9+
-----------------------------------
10+
>fun printPassCapable(item) =
11+
^^^
12+
meta.directive.fun.dw storage.type.dw
13+
^
14+
meta.directive.fun.dw
15+
^^^^^^^^^^^^^^^^
16+
meta.directive.fun.dw entity.name.function.dw
17+
^
18+
meta.directive.fun.dw
19+
^^^^
20+
meta.directive.fun.dw variable.parameter.dw
21+
^
22+
meta.directive.fun.dw
23+
^
24+
meta.directive.fun.dw
25+
^
26+
meta.directive.fun.dw keyword.operator.assignment.dw
27+
> using(msg = aa)
28+
^^^^^
29+
using-statement.expr.dw keyword.control.using.dw
30+
^
31+
using-statement.expr.dw
32+
^^^
33+
using-statement.expr.dw entity.name.variable.dw
34+
^^
35+
using-statement.expr.dw keyword.operator.dw
36+
^
37+
using-statement.expr.dw
38+
^^
39+
using-statement.expr.dw variable.other.dw
40+
^
41+
using-statement.expr.dw
42+
> item
43+
^^^^
44+
variable.other.dw

tests/cases/using.dwl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fun printPassCapable(item) =
2+
using(msg = aa)
3+
item

0 commit comments

Comments
 (0)