Selaa lähdekoodia

Highlight more ruby operators

Andrew Swistak 8 vuotta sitten
vanhempi
commit
3ae065da0a
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      vim/after/syntax/ruby.vim

+ 7 - 0
vim/after/syntax/ruby.vim

@@ -1,3 +1,10 @@
+let ruby_operators = 1
+
+syn match Operator /\.\(class\)\@!/
+syn match Operator /[?+*;,<>&!~=-]/
+syn match Operator /||\||=\||\(\d\)\@=\||\(\w\)\@!\(.\{-\}|\)\@!/
+
+
 syn match _rubyFunction /\(\.\|\s\|^\)\@<=\w\+\((\)\@=/
 hi link _rubyFunction Function
 hi link rubyRoute Type