Skip to content

Commit

Permalink
Fix bug in s:int() that only recognizes the first character
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Sep 14, 2023
1 parent 9597e07 commit 08014bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vsnip/snippet/parser.vim
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let s:slash = s:token('/')
let s:comma = s:token(',')
let s:pipe = s:token('|')
let s:varname = s:pattern('[_[:alpha:]]\w*')
let s:int = s:map(s:pattern('\d\+'), { value -> str2nr(value[0]) })
let s:int = s:map(s:pattern('\d\+'), { value -> str2nr(value) })
let s:text = { stop, escape -> s:map(
\ s:skip(stop, escape),
\ { value -> {
Expand Down

0 comments on commit 08014bf

Please sign in to comment.