Skip to content

Commit 5a4fcc5

Browse files
committed
config for the generator syntax test
1 parent b4e1b68 commit 5a4fcc5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

R#/Language/TokenIcer/Scanner.vb

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Namespace Language.TokenIcer
274274
"suppress",
275275
"typeof", "modeof", "valueof",
276276
"using",
277-
"new", "try", "switch", "of"
277+
"new", "try", "switch", "of", "yield"
278278
}
279279

280280
Private Function isLINQKeyword(word As String) As Boolean
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
let pops = function() {
2+
for(i in 1:10) {
3+
print(`get offset: ${i}`);
4+
yield(i);
5+
}
6+
}
7+
8+
for(let xi in pops()) {
9+
print(xi ^ 2);
10+
}

0 commit comments

Comments
 (0)