This commit is contained in:
Михаил Капелько
2024-06-02 23:20:18 +03:00
parent e9e0073061
commit 17a2615351
10 changed files with 246 additions and 9 deletions

View File

@@ -55,6 +55,7 @@ def translateStatement(s, state):
posColon = ss.find(": ")
posComma = ss.find(", ")
posComment = ss.find("# ")
posCtrl = ss.find("ctrl.")
posCtx = ss.find("c.")
posEqual = ss.find(" = ")
posFor = ss.find("for ")
@@ -97,6 +98,7 @@ def translateStatement(s, state):
# name = value -> auto name = value
if (
posCtx == -1 and
posCtrl == -1 and
posColon == -1 and
posOpenSquareBracket == -1 and
posEqual >= 0