" Vim syntax file " Language: RDoc - Ruby Documentation " Author: Hallison Batista " URL: http://hallisonbatista.com/projetos/rdoc.vim " Version: 1.1.0 " Last Change: Fri Dec 4 09:47:32 AMT 2009 " Remark: Inspired in Markdown syntax written by Ben Williams . " http://www.vim.org/scripts/script.php?script_id=1242 " Read the HTML syntax to start with if version < 600 source :p:h/html.vim else runtime! syntax/html.vim unlet b:current_syntax endif if version < 600 syntax clear elseif exists("b:current_syntax") finish endif " Don't use standard HiLink, it will not work with included syntax files if version < 508 command! -nargs=+ HtmlHiLink highlight link else command! -nargs=+ HtmlHiLink highlight def link endif syntax spell toplevel syntax case ignore syntax sync linebreaks=1 " RDoc text markup syntax region rdocBold start=/\\\@]*>" end="" syntax region rdocCode start="]*>" end="" syntax region rdocCode start="]*>" end="" " RDoc HTML headings syntax region htmlH1 start="^\s*=" end="\($\)" contains=@Spell syntax region htmlH2 start="^\s*==" end="\($\)" contains=@Spell syntax region htmlH3 start="^\s*===" end="\($\)" contains=@Spell syntax region htmlH4 start="^\s*====" end="\($\)" contains=@Spell syntax region htmlH5 start="^\s*=====" end="\($\)" contains=@Spell syntax region htmlH6 start="^\s*======" end="\($\)" contains=@Spell " Highlighting for RDoc groups HtmlHiLink rdocCode String HtmlHiLink rdocBlockquote Comment HtmlHiLink rdocLineContinue Comment HtmlHiLink rdocListItem Identifier HtmlHiLink rdocRule Identifier HtmlHiLink rdocLineBreak Todo HtmlHiLink rdocLink htmlLink HtmlHiLink rdocInlineURL htmlLink HtmlHiLink rdocURL htmlString HtmlHiLink rdocID Identifier HtmlHiLink rdocBold htmlBold HtmlHiLink rdocEmphasis htmlItalic HtmlHiLink rdocMonospace String HtmlHiLink rdocDelimiter Delimiter let b:current_syntax = "rdoc" delcommand HtmlHiLink " vim: tabstop=2