Explorar el Código

Highlight more ruby operators

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

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

@@ -1,6 +1,10 @@
 let ruby_operators = 1
 
-syn match OperatorChars /\.\(class\)\@!/
+syn match Operator /\.\(class\)\@!/
+syn match Operator /[?+*;,<>&!~=-]/
+syn match Operator /||\||=\||\(\d\)\@=\||\(\w\)\@!\(.\{-\}|\)\@!/
+
+
 syn match _rubyFunction /\(\.\|\s\|^\)\@<=\w\+\((\)\@=/
 
 syn region ParenContainer   matchgroup=ContainerChars start=/(/ end=/)/ transparent