Skip to content

Commit b20a49b

Browse files
author
Herbert Maschke
committed
attempt to press __() into regular expression
1 parent f2b3915 commit b20a49b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

autoload/laravel/goto.vim

+2-8
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,11 @@ endfunction
9191

9292
""
9393
" @private
94-
" Capture language name at cursor using trans() method
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

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
10599

106100
""
107101
" @private

0 commit comments

Comments
 (0)