Summary Files Commits Branches @commit @diff @stats
path: root / awk-edits / MEL--Parser.awk
diff options
context:
space:
mode:
Commitab29c6dfd0c640b831e94d56cd3718d4db0dfd0c (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-02-25 14:39:00 +0200
Committer
 Syndamia <kamen@syndamia.com>
2024-02-25 14:39:00 +0200
Files0066c747e0d96bbf65a354d1d4407197f4080334 /awk-edits/MEL--Parser.awk
syndamia.com-ab29c6dfd0c640b831e94d56cd3718d4db0dfd0c.tar
syndamia.com-ab29c6dfd0c640b831e94d56cd3718d4db0dfd0c.tar.gz
syndamia.com-ab29c6dfd0c640b831e94d56cd3718d4db0dfd0c.zip
Parent1105938f1226f419dbf177caa50d2802544bdc8b (diff)
(awk-edits) MEL scripts now require a function so there are no script ordering problems
Before if MEL--Parser wasn't put before other MEL files by find command, MEL.... variables wouldn't init and results would be unuseable
1 files changed, 5 insertions, 1 deletions
-rw-r--r--awk-edits/MEL--Parser.awk6
diff --git a/awk-edits/MEL--Parser.awk b/awk-edits/MEL--Parser.awk
index d1eb4d5..248eff2 100644
--- a/awk-edits/MEL--Parser.awk
+++ b/awk-edits/MEL--Parser.awk
@@ -28,10 +28,14 @@
# So it will surf as a separator between direct subelements
BEGIN {
+ usesMEL()
newStack("mel")
+}
+
+function usesMEL() {
MELOPEN = "o"
MELCLOSE = "c"
- MELINSERT = "s"
+ MELINSERT = "i"
MELPARAGRAPH = "p"
MELLINE = "l"
}