Skip to content

Commit 93b8bcb

Browse files
author
Herbert Maschke
committed
allow gf (go to file) command also for __() method (which is an alias for trans())
1 parent 299813e commit 93b8bcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/laravel/goto.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ endfunction
9191

9292
""
9393
" @private
94-
" Capture language name at cursor
94+
" Capture language name at cursor using trans(), trans_choice() and __() method
9595
function! laravel#goto#language() abort
96-
return s:find_name('\<trans\%(_choice\)\?([''"]\([^''".]\+\)[^''"]*[''"][,)].*$')
96+
return s:find_name('\<\%\(__\|trans\%(_choice\)\?\)([''"]\([^''".]\+\)[^''"]*[''"][,)].*$')
9797
endfunction
9898

9999
""

0 commit comments

Comments
 (0)