We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f99b3 commit d458672Copy full SHA for d458672
autoload/vimlparser.vim
@@ -206,6 +206,10 @@ function! s:isdigit(c)
206
return a:c =~# '^[0-9]$'
207
endfunction
208
209
+function! s:isodigit(c)
210
+ return a:c =~# '^[0-7]$'
211
+endfunction
212
+
213
function! s:isxdigit(c)
214
return a:c =~# '^[0-9A-Fa-f]$'
215
@@ -3537,6 +3541,14 @@ function! s:StringReader.read_digit()
3537
3541
return r
3538
3542
3539
3543
3544
+function! s:StringReader.read_odigit()
3545
+ let r = ''
3546
+ while s:isodigit(self.peekn(1))
3547
+ let r .= self.getn(1)
3548
+ endwhile
3549
+ return r
3550
3551
3540
3552
function! s:StringReader.read_xdigit()
3553
let r = ''
3554
while s:isxdigit(self.peekn(1))
0 commit comments