Add "CONTINUE" ST statement.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 15 Aug 2024 23:23:56 +0200
changeset 3962 ccf7461e8ff2
parent 3961 f01bd9a40554
child 3963 38bebb9ee34e
Add "CONTINUE" ST statement.

Matches "Add CONTINUE statement, fix FOR loop accordingly" 8a06b3bb92967b389466b8afa977a995ec605e2d commit in Matiec.
plcopen/structures.py
--- a/plcopen/structures.py	Thu Aug 15 23:20:16 2024 +0200
+++ b/plcopen/structures.py	Thu Aug 15 23:23:56 2024 +0200
@@ -340,7 +340,7 @@
 ST_BLOCK_START_KEYWORDS = ["IF", "ELSIF", "ELSE", "CASE", "FOR", "WHILE", "REPEAT"]
 ST_BLOCK_END_KEYWORDS = ["END_IF", "END_CASE", "END_FOR", "END_WHILE", "END_REPEAT"]
 ST_KEYWORDS = [
-    "TRUE", "FALSE", "THEN", "OF", "TO", "BY", "DO", "DO", "UNTIL", "EXIT",
+    "TRUE", "FALSE", "THEN", "OF", "TO", "BY", "DO", "DO", "UNTIL", "EXIT", "CONTINUE",
     "RETURN", "NOT", "MOD", "AND", "XOR", "OR"
 ] + ST_BLOCK_START_KEYWORDS + ST_BLOCK_END_KEYWORDS