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 f2b3915Copy full SHA for f2b3915
autoload/laravel/goto.vim
@@ -91,11 +91,18 @@ endfunction
91
92
""
93
" @private
94
-" Capture language name at cursor
+" Capture language name at cursor using trans() method
95
function! laravel#goto#language() abort
96
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
108
" Hack for testing script-local functions.
0 commit comments