comparison runtime/syntax/eruby.vim @ 1121:e63691e7c504

updated for version 7.1a
author vimboss
date Sat, 05 May 2007 17:54:07 +0000
parents f24a95dae8ee
children a91a2e0c4108
comparison
equal deleted inserted replaced
1120:e6db096b07a1 1121:e63691e7c504
27 syn include @rubyTop syntax/ruby.vim 27 syn include @rubyTop syntax/ruby.vim
28 endif 28 endif
29 29
30 syn cluster erubyRegions contains=erubyOneLiner,erubyBlock,erubyExpression,erubyComment 30 syn cluster erubyRegions contains=erubyOneLiner,erubyBlock,erubyExpression,erubyComment
31 31
32 syn region erubyOneLiner matchgroup=erubyDelimiter start="^%%\@!" end="$" contains=@rubyTop containedin=ALLBUT,@erubyRegions keepend oneline 32 syn region erubyOneLiner matchgroup=erubyDelimiter start="^%%\@!" end="$" contains=@rubyTop containedin=ALLBUT,@erubyRegions keepend oneline
33 syn region erubyBlock matchgroup=erubyDelimiter start="<%%\@!" end="%>" contains=@rubyTop containedin=ALLBUT,@erubyRegions 33 syn region erubyBlock matchgroup=erubyDelimiter start="<%%\@!-\=" end="-\=%>" contains=@rubyTop containedin=ALLBUT,@erubyRegions
34 syn region erubyExpression matchgroup=erubyDelimiter start="<%=" end="%>" contains=@rubyTop containedin=ALLBUT,@erubyRegions 34 syn region erubyExpression matchgroup=erubyDelimiter start="<%=" end="-\=%>" contains=@rubyTop containedin=ALLBUT,@erubyRegions
35 syn region erubyComment matchgroup=erubyDelimiter start="<%#" end="%>" contains=rubyTodo,@Spell containedin=ALLBUT,@erubyRegions keepend 35 syn region erubyComment matchgroup=erubyDelimiter start="<%#" end="-\=%>" contains=rubyTodo,@Spell containedin=ALLBUT,@erubyRegions keepend
36 36
37 " Define the default highlighting. 37 " Define the default highlighting.
38 " For version 5.7 and earlier: only when not done already 38 " For version 5.7 and earlier: only when not done already
39 " For version 5.8 and later: only when an item doesn't have highlighting yet 39 " For version 5.8 and later: only when an item doesn't have highlighting yet
40 if version >= 508 || !exists("did_eruby_syntax_inits") 40 if version >= 508 || !exists("did_eruby_syntax_inits")