Commits

ZyX_I committed e8ee57f

@/fwc: Fixed readreg() (it tested whether regex+border is a valid regular expression, while just regex was needed)

  • Participants
  • Parent commits 105d589

Comments (0)

Files changed (2)

File plugin/frawor/fwc/parser.vim

         call self.throw('unmatchp', a:endstr)
     endif
     call self.removestr(len(c))
+    let c=c[:-2]
     try
         call matchstr('', c)
     catch
         call self.throw('invreg', c)
     endtry
-    return c[:-2]
+    return c
 endfunction
 "▶1 readflt    :: () + self → String|0 + self(s)
 "  {flt} :: ( "+" | "-" ) ( "nan" | "inf" | {unum} )

File test/fwctests.dat

 ['isfunc',          'check'], ['g:[xx]'],           0
 #▶3 match
 :set magic
+['match @\v.+@',    'check'], ['abc'],              1
 ['match/\vb@<!a/',  'check'], ['abc'],              1
 ['match/\vb@<!a/',  'check'], ['bac'],              0
 ['match/\vb@<!a/',  'check'], [0],                  0