Explorar el Código

Broader ruby function highlighting

Andrew Swistak hace 8 años
padre
commit
3aa2da30f7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      vim/after/syntax/ruby.vim

+ 1 - 1
vim/after/syntax/ruby.vim

@@ -1,4 +1,4 @@
-syn match _rubyFunction /\(\.\)\@<=\w\+\((\)\@=/
+syn match _rubyFunction /\(\.\|\s\|^\)\@<=\w\+\((\)\@=/
 hi link _rubyFunction Function
 
 syn region rubyBlockParameterList matchgroup=Operator start="\%(\%(\<do\>\|{\)\_s*\)\@32<=|" end="|" oneline display contains=rubyBlockParameter