<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,12 +2,11 @@
 &quot; Language:	Markdown
 &quot; Maintainer:	Ben Williams &lt;benw@plasticboy.com&gt;
 &quot; URL:		http://plasticboy.com/markdown-vim-mode/
-&quot; Version:	8
-&quot; Last Change:  2008 April 29 
+&quot; Version:	9
+&quot; Last Change:  2009 May 18 
 &quot; Remark:	Uses HTML syntax file
 &quot; Remark:	I don't do anything with angle brackets (&lt;&gt;) because that would too easily
 &quot;		easily conflict with HTML syntax
-&quot; TODO: 	Do something appropriate with image syntax
 &quot; TODO: 	Handle stuff contained within stuff (e.g. headings within blockquotes)
 
 
@@ -37,13 +36,23 @@ syn case ignore
 syn sync linebreaks=1
 
 &quot;additions to HTML groups
-syn region htmlBold     start=/\(^\|\s\)\*\@&lt;!\*\*\*\@!/     end=/\*\@&lt;!\*\*\*\@!\($\|\s\)/   contains=@Spell,htmlItalic
-syn region htmlItalic   start=/\(^\|\s\)\*\@&lt;!\*\*\@!/       end=/\*\@&lt;!\*\*\@!\($\|\s\)/      contains=htmlBold,@Spell
-syn region htmlBold     start=/\(^\|\s\)_\@&lt;!___\@!/         end=/_\@&lt;!___\@!\($\|\s\)/       contains=htmlItalic,@Spell
-syn region htmlItalic   start=/\(^\|\s\)_\@&lt;!__\@!/          end=/_\@&lt;!__\@!\($\|\s\)/        contains=htmlBold,@Spell
-syn region htmlString   start=&quot;](&quot;ms=s+2             end=&quot;)&quot;me=e-1
-syn region htmlLink     start=&quot;\[&quot;ms=s+1            end=&quot;\]&quot;me=e-1 contains=@Spell
-syn region htmlString   start=&quot;\(\[.*]: *\)\@&lt;=.*&quot;  end=&quot;$&quot;
+syn region htmlBold     start=/\\\@&lt;!\(^\|\A\)\@=\*\@&lt;!\*\*\*\@!/     end=/\\\@&lt;!\*\@&lt;!\*\*\*\@!\($\|\A\)\@=/   contains=@Spell,htmlItalic
+syn region htmlItalic   start=/\\\@&lt;!\(^\|\A\)\@=\*\@&lt;!\*\*\@!/       end=/\\\@&lt;!\*\@&lt;!\*\*\@!\($\|\A\)\@=/      contains=htmlBold,@Spell
+syn region htmlBold     start=/\\\@&lt;!\(^\|\A\)\@=_\@&lt;!___\@!/         end=/\\\@&lt;!_\@&lt;!___\@!\($\|\A\)\@=/       contains=htmlItalic,@Spell
+syn region htmlItalic   start=/\\\@&lt;!\(^\|\A\)\@=_\@&lt;!__\@!/          end=/\\\@&lt;!_\@&lt;!__\@!\($\|\A\)\@=/        contains=htmlBold,@Spell
+
+&quot; [link](URL) | [link][id] | [link][]
+syn region mkdLink matchgroup=mkdDelimiter      start=&quot;\!\?\[&quot; end=&quot;\]\ze\s*[[(]&quot; contains=@Spell nextgroup=mkdURL,mkdID skipwhite oneline
+syn region mkdID matchgroup=mkdDelimiter        start=&quot;\[&quot;    end=&quot;\]&quot; contained
+syn region mkdURL matchgroup=mkdDelimiter       start=&quot;(&quot;     end=&quot;)&quot;  contained
+
+&quot; Link definitions: [id]: URL (Optional Title)
+&quot; TODO handle automatic links without colliding with htmlTag (&lt;URL&gt;)
+syn region mkdLinkDef matchgroup=mkdDelimiter   start=&quot;^ \{,3}\zs\[&quot; end=&quot;]:&quot; oneline nextgroup=mkdLinkDefTarget skipwhite
+syn region mkdLinkDefTarget start=&quot;&lt;\?\zs\S&quot; excludenl end=&quot;\ze[&gt;[:space:]\n]&quot;   contained nextgroup=mkdLinkTitle,mkdLinkDef skipwhite skipnl oneline
+syn region mkdLinkTitle matchgroup=mkdDelimiter start=+&quot;+     end=+&quot;+  contained
+syn region mkdLinkTitle matchgroup=mkdDelimiter start=+'+     end=+'+  contained
+syn region mkdLinkTitle matchgroup=mkdDelimiter start=+(+     end=+)+  contained
 
 &quot;define Markdown groups
 syn match  mkdLineContinue &quot;.$&quot; contained
@@ -54,10 +63,11 @@ syn match  mkdRule      /^\s*-\{3,}$/
 syn match  mkdRule      /^\s*\*\{3,5}$/
 syn match  mkdListItem  &quot;^\s*[-*+]\s\+&quot;
 syn match  mkdListItem  &quot;^\s*\d\+\.\s\+&quot;
-syn match  mkdCode      /^\s*\n\(\(\s\{4,}\|[\t]\+\)[^*-+ ].*\n\)\+/
-syn region mkdCode      start=/`/                   end=/`/
+syn match  mkdCode      /^\s*\n\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/
+syn match  mkdLineBreak /  \+$/
+syn region mkdCode      start=/\\\@&lt;!`/                   end=/\\\@&lt;!`/
 syn region mkdCode      start=/\s*``[^`]*/          end=/[^`]*``\s*/
-syn region mkdBlockquote start=/^\s*&gt;/              end=/$/                 contains=mkdLineContinue,@Spell
+syn region mkdBlockquote start=/^\s*&gt;/              end=/$/                 contains=mkdLineBreak,mkdLineContinue,@Spell
 syn region mkdCode      start=&quot;&lt;pre[^&gt;]*&gt;&quot;         end=&quot;&lt;/pre&gt;&quot;
 syn region mkdCode      start=&quot;&lt;code[^&gt;]*&gt;&quot;        end=&quot;&lt;/code&gt;&quot;
 
@@ -78,7 +88,15 @@ HtmlHiLink mkdBlockquote    Comment
 HtmlHiLink mkdLineContinue  Comment
 HtmlHiLink mkdListItem      Identifier
 HtmlHiLink mkdRule          Identifier
+HtmlHiLink mkdLineBreak     Todo
+HtmlHiLink mkdLink          htmlLink
+HtmlHiLink mkdURL           htmlString
+HtmlHiLink mkdID            Identifier
+HtmlHiLink mkdLinkDef       mkdID
+HtmlHiLink mkdLinkDefTarget mkdURL
+HtmlHiLink mkdLinkTitle     htmlString
 
+HtmlHiLink mkdDelimiter     Delimiter
 
 let b:current_syntax = &quot;mkd&quot;
 </diff>
      <filename>.vim/syntax/mkd.vim</filename>
    </modified>
    <modified>
      <diff>@@ -3,3 +3,4 @@
 # for code that is specific to interactive sessions, see .zshrc
 
 export PATH=~/bin:/var/lib/gems/1.8/bin:/usr/local/sbin:/usr/local/bin:/opt/local/sbin:/opt/local/bin:/opt/jruby/bin:$PATH
+export MANPATH=/opt/local/share/man:$MANPATH</diff>
      <filename>.zshenv</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bc4e2186c2cf38d9c00805e7d496da497efc662a</id>
    </parent>
  </parents>
  <author>
    <name>Sam Quigley</name>
    <email>sq@wesabe.com</email>
  </author>
  <url>http://github.com/emerose/dotfiles/commit/d71dfb38fb3d03d8896fb750bbd3ff2779da3f2a</url>
  <id>d71dfb38fb3d03d8896fb750bbd3ff2779da3f2a</id>
  <committed-date>2009-10-04T21:24:05-07:00</committed-date>
  <authored-date>2009-10-04T21:24:05-07:00</authored-date>
  <message>update to v9 of markdown vim plugin

also set $MANPATH explicitly</message>
  <tree>060d644ba5413d86146941f7d7876f910a9fd553</tree>
  <committer>
    <name>Sam Quigley</name>
    <email>sq@wesabe.com</email>
  </committer>
</commit>
