Skip to content

Commit 91d7ce5

Browse files
committed
Add test case for expansions changing context
1 parent d9654b7 commit 91d7ce5

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
def string_start equs "println \"hello"
2+
string_start world"
3+
4+
def triple_string_start equs "println \"\"\"multi"
5+
triple_string_start;ple
6+
line
7+
strings"""
8+
9+
def cond_start equs "if 0\nprintln \"false\"\nelif"
10+
cond_start 1
11+
println "true"
12+
else
13+
println "nan"
14+
endc
15+
16+
def loop_start equs "rept 3\nprintln"
17+
loop_start "lol"
18+
endr
19+
20+
def macro_start equs "macro foo\nprintln"
21+
macro_start \1
22+
endm
23+
foo 42
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
hello world
2+
multi;ple
3+
line
4+
strings
5+
true
6+
lol
7+
lol
8+
lol
9+
$2A

0 commit comments

Comments
 (0)