Permalink
Browse files

Lambda function support

  • Loading branch information...
1 parent c49f3cc commit d6060d2b1ff1cff71714e126addd3b10883ade12 @thinca committed Jul 16, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 autoload/prettyprint.vim
@@ -89,7 +89,8 @@ function! s:pp(expr, shift, width, stack) abort
let matched = matchlist(funcstr, '\C^function(''\(.\{-}\)''\()\?\)')
let funcname = matched[1]
let is_partial = matched[2] !=# ')'
- let symbol = funcname =~# '^\d\+$' ? '{' . funcname . '}' : funcname
+ let symbol = funcname =~# '^\%(<lambda>\)\?\d\+$' ?
+ \ '{"' . funcname . '"}' : funcname
if &verbose && exists('*' . symbol)
redir => func
" Don't print a definition location if &verbose == 1.

0 comments on commit d6060d2

Please sign in to comment.