Skip to content

Commit

Permalink
Update autoload/jsdoc.vim
Browse files Browse the repository at this point in the history
Co-authored-by: Shinya Ohyanagi <[email protected]>
  • Loading branch information
Hwlhwlxyz and heavenshell committed May 21, 2023
1 parent f924656 commit c8d22b1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions autoload/jsdoc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ set cpo&vim
let g:jsdoc_templates_path = get(g:, 'jsdoc_templates_path', '')
let g:jsdoc_formatter = get(g:, 'jsdoc_formatter', 'jsdoc')
if has("win64") || has("win32") || has("win16")
let g:jsdoc_lehre_path = get(
\ g:,
\ 'jsdoc_lehre_path',
\ printf('%s/lib/node_modules/.bin/lehre.cmd', expand('<sfile>:p:h:h'))
\ )
let g:jsdoc_lehre_path = get(
\ g:,
\ 'jsdoc_lehre_path',
\ printf('%s/lib/node_modules/.bin/lehre.cmd', expand('<sfile>:p:h:h'))
\ )
else
let g:jsdoc_lehre_path = get(
\ g:,
\ 'jsdoc_lehre_path',
\ printf('%s/lib/lehre', expand('<sfile>:p:h:h'))
\ )
let g:jsdoc_lehre_path = get(
\ g:,
\ 'jsdoc_lehre_path',
\ printf('%s/lib/lehre', expand('<sfile>:p:h:h'))
\ )
endif

let s:is_method_regex = '^.\{-}\s*\([a-zA-Z_$][a-zA-Z0-9_$]*\)\s*(\s*\([^)]*\)\s*).*$'
Expand Down

0 comments on commit c8d22b1

Please sign in to comment.