Skip to content

Commit 311361c

Browse files
committed
add python keywords
1 parent 05c653c commit 311361c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Famix-Python-Entities/FamixPythonSourceLanguage.class.st

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,19 @@ FamixPythonSourceLanguage class >> annotation [
2828
<generated>
2929
^ self
3030
]
31+
32+
{ #category : 'meta' }
33+
FamixPythonSourceLanguage class >> languageKeyWords [
34+
"keywords from keyword.kwlist
35+
Python version: 3.10.18"
36+
37+
^ #(
38+
and as assert async await
39+
break class continue def del
40+
elif else except False finally
41+
for from global if import
42+
in is lambda None nonlocal
43+
not or pass raise return
44+
True try while with yield
45+
)
46+
]

0 commit comments

Comments
 (0)