Browse files

Prevent syntax highlighting for YARD infecting normal Ruby code.

  • Loading branch information...
r-obert authored and postmodern committed Nov 7, 2011
1 parent 3e0ab20 commit 1e5ee91bb50ced1546456017cf5e92cd417a5e2d
Showing with 0 additions and 1 deletion.
  1. +0 −1 syntax/yard.vim
@@ -25,7 +25,6 @@ try
syn region yardMultilineComment start="\%(\%(^\s*#.*\n\)\@<!\%(^\s*#.*\n\)\)\%(\(^\s*#.*\n\)\{1,}\)\@=" end="\%(^\s*#.*\n\)\@<=\%(^\s*#.*\n\)\%(^\s*#\)\@!" contains=yardComment transparent fold keepend
syn region yardLink start="{" end="}" contained
syn match yardType "\%(\%([.@$]\@<!\.\)\@<!\<\|::\)\_s*\zs\u\w*\%(\>\|::\)\@=\%(\s*(\)\@!" contained
- syn match yardKeyword "\h\w*" contained
syn match yardRespondsTo "#\h\w*" contained
syn match yardArgsComma +,\s*+ nextgroup=yardType,yardRespondsTo,yardKeyword
syn region yardArgs start="\[" end="\]" contains=yardType,yardRespondsTo,yardKeyword,yardArgsComma skipwhite

0 comments on commit 1e5ee91

Please sign in to comment.