Skip to content

Commit

Permalink
Fix bug in s:int() that only recognizes the first character (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa authored Sep 15, 2023
1 parent 7753ba9 commit be27746
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 be27746

Please sign in to comment.