Commits

ZyX_I committed 0095426

@/fwc: Moved with* functions up

Comments (0)

Files changed (1)

plugin/frawor/fwc/compiler.vim

                        \.add('call remove(@$@pmessages, '.a:pmsglenstr.', -1)')
                \.up().close()
 endfunction
+"▶1 witharg        :: (argbase[, [subscript]]) + self → self + self
+function s:compiler.witharg(newarg)
+    call add(self.preva, [self.argbase, self.subs])
+    let self.argbase=a:newarg[0]
+    let self.subs=get(a:newarg, 1, [])
+    return self
+endfunction
+"▶1 without        :: &self
+function s:compiler.without()
+    let [self.argbase, self.subs]=remove(self.preva, -1)
+    return self
+endfunction
 "▶1 getfunc        :: funccontext, split[, addarg, ...] + self → String
 function s:compiler.getfunc(func, split, ...)
     if a:split
     call remove(self.subs, -1)
     call self.up().close()
 endfunction
-"▶1 witharg        :: (argbase[, [subscript]]) + self → self + self
-function s:compiler.witharg(newarg)
-    call add(self.preva, [self.argbase, self.subs])
-    let self.argbase=a:newarg[0]
-    let self.subs=get(a:newarg, 1, [])
-    return self
-endfunction
-"▶1 without        :: &self
-function s:compiler.without()
-    let [self.argbase, self.subs]=remove(self.preva, -1)
-    return self
-endfunction
 "▶1 adddict        :: dicdesc, idx, defaultArgType + self → self + self
 function s:compiler.adddict(dic, idx, default)
     if len(a:dic[1])==1