Skip to content

Commit 1967bfa

Browse files
committed
add more python keywords
1 parent 692ef0c commit 1967bfa

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

internal/poet/reserved.go

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,37 @@ import "slices"
44

55
// TODO(quentin@escape.tech): check if this is complete
66
var reservedKeywords = []string{
7-
"class",
8-
"if",
9-
"else",
10-
"elif",
11-
"not",
12-
"for",
137
"and",
14-
"in",
15-
"is",
16-
"or",
17-
"with",
188
"as",
199
"assert",
10+
"async",
11+
"await",
2012
"break",
13+
"class",
14+
"continue",
15+
"def",
16+
"del",
17+
"elif",
18+
"else",
2119
"except",
2220
"finally",
23-
"try",
21+
"for",
22+
"from",
23+
"global",
24+
"if",
25+
"import",
26+
"in",
27+
"is",
28+
"lambda",
29+
"nonlocal",
30+
"not",
31+
"or",
32+
"pass",
2433
"raise",
2534
"return",
35+
"try",
36+
"while",
37+
"with",
2638
"yield",
2739
}
2840

0 commit comments

Comments
 (0)