summaryrefslogtreecommitdiff
path: root/tnslc/tnslc.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-05-21 00:46:04 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-05-21 00:46:04 -0400
commita965d27f33c7d1cc69922fd8c94a02fe7dc4d889 (patch)
treea49aa9a9430d504a72d8d4e65db4b18438677871 /tnslc/tnslc.tnsl
parentbee7954037af2025fdeae9a75f0c113cd39024cb (diff)
Else if fixes
Diffstat (limited to 'tnslc/tnslc.tnsl')
-rw-r--r--tnslc/tnslc.tnsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/tnslc/tnslc.tnsl b/tnslc/tnslc.tnsl
index c642216..d5e1f7d 100644
--- a/tnslc/tnslc.tnsl
+++ b/tnslc/tnslc.tnsl
@@ -7,7 +7,7 @@
# 1 - Info (default)
# 2 - Debugging information (useful for me, probably less for you)
# 3 - Also logs the state changes of the log itself
-;{}uint8 log_level = "1"
+;{}uint8 log_level = "2"
;{}uint8 log_mode = "single"
/; log_state({}uint8 new_state)
@@ -3471,10 +3471,11 @@
}, "")
;outro = {"", "", ""}
- ;condition = -1
+ ;condition = 0 - 1
/; if (tok`{next_non_nl(tok, cur` + 1)}.cmp("if"))
;cur` = next_non_nl(tok, cur` + 1)
+ ;cur` = next_non_nl(tok, cur` + 1)
;cf = cf.parent`.new_sub_cf("elif")
/; loop (cur` < len (tok`)) [cur`++]
/; if (tok`{cur`}.cmp("(") || tok`{cur`}.cmp("["))
@@ -3504,6 +3505,7 @@
;/
;cur` = next_non_nl(tok, cur`)
+ ;cur`--
;; else
;cf = cf.parent`.new_sub_cf("else")
;/