We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 299813e commit 93b8bcbCopy full SHA for 93b8bcb
autoload/laravel/goto.vim
@@ -91,9 +91,9 @@ endfunction
91
92
""
93
" @private
94
-" Capture language name at cursor
+" Capture language name at cursor using trans(), trans_choice() and __() method
95
function! laravel#goto#language() abort
96
- return s:find_name('\<trans\%(_choice\)\?([''"]\([^''".]\+\)[^''"]*[''"][,)].*$')
+ return s:find_name('\<\%\(__\|trans\%(_choice\)\?\)([''"]\([^''".]\+\)[^''"]*[''"][,)].*$')
97
endfunction
98
99
0 commit comments