Commits

ZyX_I committed 51b2ed4

@/fwc/compiler: Fixed FWC decorator

Comments (0)

Files changed (1)

plugin/frawor/fwc/compiler.vim

         call s:_f.throw('largn2', a:fname, a:plugdict.id, len(a:arg))
     elseif type(a:arg[0])!=type('')
         call s:_f.throw('1nstr', a:fname, a:plugdict.id)
-    elseif index(['check', 'filter'], a:arg[1])
-        call s:_f.throw('invtype', a:fname, a:plugdict.id, string(a:arg))
+    elseif index(['check', 'filter'], a:arg[1])==-1
+        call s:_f.throw('invtype', a:fname, a:plugdict.id, string(a:arg[1]))
     endif
     "▲2
     let vars=s:F.createvars(a:plugdict)