Commits

ZyX_I committed ab5989c

@/checks: Replaced some double quotes with single

Comments (0)

Files changed (1)

plugin/frawor/checks.vim

 let s:args.check.bool=[]
 "▶2 check.range
 " Checks whether {argument} is in given range
-let s:args.check.range=["number", "number"]
+let s:args.check.range=['number', 'number']
 "▶2 check.keyof
 " Checks whether {argument} is a key of {var}
 let s:args.check.keyof=['var']
     endif
     call self.removestr(len(c))
     try
-        call matchstr("", c)
+        call matchstr('', c)
     catch
         call self.throw('invreg', c)
     endtry
         call self.throw('int', 'fltungetc')
     endif
     call self.delblanks()
-    let c=""
+    let c=''
     let parens=[]
     while !empty(self.s)
         let chunk=matchstr(self.s, '\v^.{-}[''[\](){}"]')
-        let stopsym=""
+        let stopsym=''
         if empty(chunk)
             let chunk=self.s
         else
         if has_key(s:parens, stopsym)
             call add(parens, s:parens[stopsym])
         elseif has_key(s:revparens, stopsym)
-            let close=""
+            let close=''
             while !empty(parens) && parens[-1] isnot stopsym
                 let close.=remove(parens, -1)
             endwhile
         call self.removestr(len(chunk))
         let c.=chunk
     endwhile
-    let c.=join(parens, "")
+    let c.=join(parens, '')
     if empty(c)
         call self.throw('noexpr')
     endif
     let c=self.readc()
     let func=s:F.getmatch(s:args[type], c)
     if func is 0 "▶3
-        call self.throw("ukfunc", c)
+        call self.throw('ukfunc', c)
     endif        "▲3
     call self.addcon('intfunc', func)
     let fargs=get(s:args[type], func, [])
             \'-': [type(0),   '0'],
         \}
 let s:typewords={
-            \    'string': type(""),
+            \    'string': type(''),
             \    'number': type(0),
             \     'float': type(0.0),
             \'dictionary': type({}),
     elseif c=~#'^\w'
         call self.add(c)
     else
-        call self.add("").ungetc(c)
+        call self.add('').ungetc(c)
     endif
     return self
 endfunction
         if c is ']'
             break
         elseif c is '='
-            call self.addcon("default").getvar().scan().conclose()
+            call self.addcon('default').getvar().scan().conclose()
         else
             call self.ungetc(c).scan()
         endif
 "        {prefdescr} :: ( "?" | "*" )* ( "=" {var} )? ({str} | {wordchar}+)
 " Output: context(prefixes, context(String, {prefopts}[, {var}], {arg}))
 "         {prefopts} :: { "alt": Bool, "list": Bool }
-let s:defprefopts={"alt": 0, "list": 0}
+let s:defprefopts={'alt': 0, 'list': 0}
 function s:F.scan.scanpref()
     call self.addcon('prefixes')
     let c=self.readc()
                 call self.throw('invpref', c)
             endif
         else
-            call self.addcon("prefix", pref, prefopts)
+            call self.addcon('prefix', pref, prefopts)
             if c is '='
                 call self.getvar()
             else
                 let hasaction=0
                 break
             elseif c is '"'
-                call self.addcon("action", self.readstr())
+                call self.addcon('action', self.readstr())
             elseif c is '-'
-                call self.addcon("action", 0)
+                call self.addcon('action', 0)
             elseif c=~#'^\w'
-                call self.addcon("action", c)
+                call self.addcon('action', c)
             else
-                call self.ungetc(c).addcon("action").scan()
+                call self.ungetc(c).addcon('action').scan()
             endif
         else
             let hasaction=0
             return self.addcon('next').scan().conclose()
         endif
     endif
-    call self.addcon("arg")
-    let accepttext=(type is "next" || self.o.only)
+    call self.addcon('arg')
+    let accepttext=(type is 'next' || self.o.only)
     let hasparen=0
     let hastext=0
     if c is '('
     while self.len
         let c=self.readc()
         if c is '|'
-            call self.scanfie("pipe")
+            call self.scanfie('pipe')
         elseif c is '?'
-            call self.scanfie("check")
+            call self.scanfie('check')
         elseif c is '#'
             call self.scanmsg()
         elseif (!hastext || accepttext) && c=~#'^\w'
 function s:F.scan.string(string)
     "▶3 Setup self
     let s   =   {    's': a:string,
-                \ 'tree': ["top"],
+                \ 'tree': ['top'],
                 \'stack': [],
                 \'ungot': [],
                 \    'l': 0,