We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2b3915 commit b20a49bCopy full SHA for b20a49b
autoload/laravel/goto.vim
@@ -91,17 +91,11 @@ endfunction
91
92
""
93
" @private
94
-" Capture language name at cursor using trans() method
+" 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
-""
100
-" @private
101
-" Capture language name at cursor using __() method
102
-function! laravel#goto#language() abort
103
- return s:find_name('\<__\%(_choice\)\?([''"]\([^''".]\+\)[^''"]*[''"][,)].*$')
104
-endfunction
105
106
107
0 commit comments