forked from gbdev/rgbds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for expansions changing context
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
def string_start equs "println \"hello" | ||
string_start world" | ||
|
||
def triple_string_start equs "println \"\"\"multi" | ||
triple_string_start;ple | ||
line | ||
strings""" | ||
|
||
def cond_start equs "if 0\nprintln \"false\"\nelif" | ||
cond_start 1 | ||
println "true" | ||
else | ||
println "nan" | ||
endc | ||
|
||
def loop_start equs "rept 3\nprintln" | ||
loop_start "lol" | ||
endr | ||
|
||
def macro_start equs "macro foo\nprintln" | ||
macro_start \1 | ||
endm | ||
foo 42 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
hello world | ||
multi;ple | ||
line | ||
strings | ||
true | ||
lol | ||
lol | ||
lol | ||
$2A |