r1178 - in /trunk/packages/vim-scripts: debian/changelog debian/copyright debian/vim-registry/vim-scripts.yaml debian/vim-scripts.status html/index.html html/syntax_mkd.vim.html syntax/mkd.vim
jamessan at users.alioth.debian.org
jamessan at users.alioth.debian.org
Fri Jan 25 06:51:46 UTC 2008
Author: jamessan
Date: Fri Jan 25 06:51:45 2008
New Revision: 1178
URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=1178
Log:
- markdown-syntax: markdown syntax file (Closes: #426680)
Added:
trunk/packages/vim-scripts/html/syntax_mkd.vim.html
trunk/packages/vim-scripts/syntax/mkd.vim
Modified:
trunk/packages/vim-scripts/debian/changelog
trunk/packages/vim-scripts/debian/copyright
trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml
trunk/packages/vim-scripts/debian/vim-scripts.status
trunk/packages/vim-scripts/html/index.html
Modified: trunk/packages/vim-scripts/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/changelog?rev=1178&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/changelog (original)
+++ trunk/packages/vim-scripts/debian/changelog Fri Jan 25 06:51:45 2008
@@ -7,6 +7,7 @@
- debPlugin: Explore .deb packages with Vim (Closes: #442865)
- python-indent: alternative python indent (a la PEP 8)
- surround: Delete, change, and add "surround" text (Closes: #462431)
+ - markdown-syntax: markdown syntax file (Closes: #426680)
* debian/control:
- Remove vim from Build-Depends-Indep since NERD Commenter now ships its
documentation.
@@ -15,7 +16,7 @@
* Add disabledby-pythonindent patch, which allows blacklisting the
python-indent script.
- -- James Vega <jamessan at debian.org> Fri, 25 Jan 2008 01:36:29 -0500
+ -- James Vega <jamessan at debian.org> Fri, 25 Jan 2008 01:45:39 -0500
vim-scripts (7.1.4) unstable; urgency=low
Modified: trunk/packages/vim-scripts/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/copyright?rev=1178&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/copyright (original)
+++ trunk/packages/vim-scripts/debian/copyright Fri Jan 25 06:51:45 2008
@@ -171,6 +171,11 @@
author: Tim Pope < vimNOSPAM at tpope.info >
url: http://www.vim.org/scripts/script.php?script_id=1697
license: Vim's license [4], see below
+
+script: syntax/mkd.vim
+author: Ben Williams < benw at plasticboy.com >
+url: http://www.vim.org/scripts/script.php?script_id=1242
+license: no license
--
Modified: trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml?rev=1178&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml (original)
+++ trunk/packages/vim-scripts/debian/vim-registry/vim-scripts.yaml Fri Jan 25 06:51:45 2008
@@ -398,3 +398,9 @@
- plugin/surround.vim
- doc/surround.txt
---
+addon: markdown-syntax
+description: "markdown syntax file"
+basedir: /usr/share/vim-scripts/
+files:
+ - syntax/mkd.vim
+---
Modified: trunk/packages/vim-scripts/debian/vim-scripts.status
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/debian/vim-scripts.status?rev=1178&op=diff
==============================================================================
--- trunk/packages/vim-scripts/debian/vim-scripts.status (original)
+++ trunk/packages/vim-scripts/debian/vim-scripts.status Fri Jan 25 06:51:45 2008
@@ -15,7 +15,7 @@
--
script_name: plugin/a.vim
-addon: alternate
+addon: alternate
description: alternate pairing files (e.g. .c/.h) with short ex-commands
script_url: http://www.vim.org/scripts/script.php?script_id=31
author: Mike Sharpe
@@ -27,7 +27,7 @@
version: 2.18
script_name: plugin/whatdomain.vim
-addon: whatdomain
+addon: whatdomain
description: query the meaning of a Top Level Domain
script_url: http://www.vim.org/scripts/script.php?script_id=62
author: Michael Piefel
@@ -289,7 +289,7 @@
version: 2.0
script_name: plugin/DoxygenToolkit.vim
-addon: doxygen-toolkit
+addon: doxygen-toolkit
description: simplify writing Doxygen documentation in C/C++
script_url: http://www.vim.org/scripts/script.php?script_id=987
author: Mathias Lorente
@@ -300,7 +300,7 @@
version: 0.1.17
script_name: ftplugin/git.vim
-addon: git-commit
+addon: git-commit
description: see your commit diff with git
script_url: http://www.vim.org/scripts/script.php?script_id=1934
author: Pierre Habouzit
@@ -311,7 +311,7 @@
version: 0.2
script_name: autoload/omni/cpp/complete.vim
-addon: omnicppcomplete
+addon: omnicppcomplete
description: C++ omni completion with a ctags database
script_url: http://vim.sourceforge.net/scripts/script.php?script_id=1520
author: Vissale Neang
@@ -323,7 +323,7 @@
version: 0.41
script_name: plugin/supertab.vim
-addon: supertab
+addon: supertab
description: use the tab key for all insert-mode completion
script_url: http://www.vim.org/scripts/script.php?script_id=1643
author: Eric Van Dewoestine
@@ -378,6 +378,16 @@
extras: doc/surround.txt
disabledby: let loaded_surround = 1
version: 1.27
+
+script_name: syntax/mkd.vim
+addon: markdown-syntax
+description: markdown syntax file
+script_url: http://www.vim.org/scripts/script.php?script_id=1242
+author: Ben Williams
+author_url: http://www.vim.org/account/profile.php?user_id=5655
+email: benw at plasticboy.com
+license: no license
+version: 6
--
Modified: trunk/packages/vim-scripts/html/index.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/index.html?rev=1178&op=diff
==============================================================================
--- trunk/packages/vim-scripts/html/index.html (original)
+++ trunk/packages/vim-scripts/html/index.html Fri Jan 25 06:51:45 2008
@@ -45,9 +45,10 @@
<li><a href="plugin_whatdomain.vim.html">plugin/whatdomain.vim.html</a></li>
<li><a href="plugin_winmanager.vim.html">plugin/winmanager.vim.html</a></li>
<li><a href="syntax_CVSAnnotate.vim.html">syntax/CVSAnnotate.vim.html</a></li>
+ <li><a href="syntax_mkd.vim.html">syntax/mkd.vim.html</a></li>
</ul>
<p>
- Page generated on Fri, 25 Jan 2008 01:32:03 -0500
+ Page generated on Fri, 25 Jan 2008 01:50:49 -0500
.
</p>
</body>
Added: trunk/packages/vim-scripts/html/syntax_mkd.vim.html
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/html/syntax_mkd.vim.html?rev=1178&op=file
==============================================================================
--- trunk/packages/vim-scripts/html/syntax_mkd.vim.html (added)
+++ trunk/packages/vim-scripts/html/syntax_mkd.vim.html Fri Jan 25 06:51:45 2008
@@ -1,0 +1,305 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<head>
+ <link rel="Stylesheet" type="text/css" href="/css/style.css" >
+ <title>Markdown syntax - Syntax file for Markdown text-to-HTML language : vim online</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <meta name="KEYWORDS" content="Vim, Vi IMproved, text editor, home, documentation, tips, scripts, news">
+ <link rel="shortcut icon" type="image/x-icon" href="/images/vim_shortcut.ico">
+</head>
+
+<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">
+
+<!-- HEADER, SPONSOR IMAGE, VIM IMAGE AND BOOK AD -->
+<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red">
+ <tr>
+ <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+ </tr>
+ <tr>
+ <td class="lightbg"> </td>
+ <td class="lightbg" align="left"><a href="/sponsor/index.php"><img src="/images/sponsorvim.gif" alt="sponsor Vim development" border="0"></a></td>
+ <td class="lightbg" align="center"><a href="/index.php"><img src="/images/vim_header.gif" border="0" alt="Vim logo"></a></td>
+ <td class="lightbg" align="right"><a href="http://iccf-holland.org/click5.html"><img src="/images/buyhelplearn.gif" alt="Vim Book Ad" border="0"></a></td>
+ </tr>
+ <tr>
+ <td colspan="4" class="lightbg"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+ </tr>
+ <tr>
+ <td colspan="4" class="darkbg"><img src="/images/spacer.gif" width="1" height="10" alt=""></td>
+ </tr>
+</table>
+<!-- THE PAGE BODY: BETWEEN HEADER AND FOOTER -->
+
+<table cellpadding="0" cellspacing="0" border="0" width="100%">
+ <col width="180">
+ <col width="1">
+
+ <tr valign="top">
+ <td class="sidebar">
+ <table width="180" cellpadding="4" cellspacing="0" border="0">
+ <tr valign="top">
+ <td class="sidebar">
+
+<!-- INCLUDE THE PAGE NAVIGATION -->
+<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red">
+ <tr>
+ <td><small>not logged in (<a href="/login.php">login</a>)</small></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="1"></td>
+ </tr>
+ <tr>
+ <td class="darkbg"><img src="/images/spacer.gif" alt='' border="0" height="3"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="2"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/index.php">Home</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/search.php">Search</a></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/about.php">About Vim</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/community.php">Community</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/news/news.php">News</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/sponsor/index.php">Sponsoring</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/trivia.php">Trivia</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/docs.php">Documentation</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/download.php">Download</a></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/scripts/index.php">Scripts</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/tips/index.php">Tips</a></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/account/index.php">My Account</a></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="checker"><img src="/images/spacer.gif" alt='' border="0" height="1"></td>
+ </tr>
+ <tr>
+ <td><img src="/images/spacer.gif" alt="" border="0" width="1" height="7"></td>
+ </tr>
+ <tr>
+ <td class="sidebarheader"><a href="/huh.php">Site Help</a></td>
+ </tr>
+</table>
+
+ <table width="172" cellpadding="0" cellspacing="0" border="0">
+ <tr><td><img src="/images/spacer.gif" alt="" border="0" width="1" height="8"></td></tr>
+ <tr><td class="darkbg"><img src="/images/spacer.gif" width="1" height="3" alt=""></td></tr>
+ </table>
+ <br>
+
+<!-- INCLUDE THE PAGE SIDEBAR TEXT -->
+
+
+ </td>
+ </tr>
+ </table>
+ </td>
+
+ <td class="darkbg"><img src="/images/spacer.gif" width="1" height="1" border="0" alt=""><br></td>
+ <td>
+ <table width="100%" cellpadding="10" cellspacing="0" border="0" bordercolor="red">
+ <tr>
+ <td valign="top">
+
+<span class="txth1">Markdown syntax : Syntax file for Markdown text-to-HTML language</span>
+
+<br>
+<br>
+
+<!-- karma table -->
+<table cellpadding="4" cellspacing="0" border="1" bordercolor="#000066">
+<tr>
+ <td class="lightbg"><b> script karma </b></td>
+ <td>
+ Rating <b>31/19</b>,
+ Downloaded by 896 </td>
+</tr>
+</table>
+<p>
+
+<table cellspacing="0" cellpadding="0" border="0">
+<tr><td class="prompt">created by</td></tr>
+<tr><td><a href="/account/profile.php?user_id=5655">Ben Williams</a></td></tr>
+<tr><td> </td></tr>
+<tr><td class="prompt">script type</td></tr>
+<tr><td>syntax</td></tr>
+<tr><td> </td></tr>
+<tr><td class="prompt">description</td></tr>
+<tr><td>A syntax file for the Markdown text-to-HTML tool <a target="_blank" href="http://daringfireball.net/projects/markdown/">http://daringfireball.net/projects/markdown/</A></td></tr>
+<tr><td> </td></tr>
+<tr><td class="prompt">install details</td></tr>
+<tr><td>See <a target="_blank" href="http://plasticboy.com/markdown-vim-mode/">http://plasticboy.com/markdown-vim-mode/</A></td></tr>
+<tr><td> </td></tr>
+</table>
+
+<!-- rating table -->
+<form name="rating">
+<input type="hidden" name="script_id" value="1242">
+<table cellpadding="4" cellspacing="0" border="1" bordercolor="#000066">
+<tr>
+ <td class="lightbg"><b>rate this script</b></td>
+ <td valign="middle">
+ <input type="radio" name="rating" value="life_changing">Life Changing
+ <input type="radio" name="rating" value="helpful">Helpful
+ <input type="radio" name="rating" value="unfulfilling">Unfulfilling
+ <input type="submit" value="rate">
+ </td>
+</tr>
+</table>
+</form>
+<span class="txth2">script versions</span> (<a href="add_script_version.php?script_id=1242">upload new version</a>)
+<p>
+Click on the package to download.
+<p>
+
+<table cellspacing="2" cellpadding="4" border="0" width="100%">
+<tr class='tableheader'>
+ <th valign="top">package</th>
+ <th valign="top">script version</th>
+ <th valign="top">date</th>
+ <th valign="top">Vim version</th>
+ <th valign="top">user</th>
+ <th valign="top">release notes</th>
+</tr>
+<tr>
+ <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=6127">mkd.vim</a></td>
+ <td class="rowodd" valign="top" nowrap><b>6</b></td>
+ <td class="rowodd" valign="top" nowrap><i>2006-09-01</i></td>
+ <td class="rowodd" valign="top" nowrap>6.0</td>
+ <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=5655">Ben Williams</a></i></td>
+ <td class="rowodd" valign="top" width="2000">Enables spellchecking in Vim 7 and adds highlighting for reference-style links thanks to Will Norris.</td>
+</tr>
+<tr>
+ <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4845">mkd.vim</a></td>
+ <td class="roweven" valign="top" nowrap><b>5</b></td>
+ <td class="roweven" valign="top" nowrap><i>2005-12-01</i></td>
+ <td class="roweven" valign="top" nowrap>6.0</td>
+ <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=5655">Ben Williams</a></i></td>
+ <td class="roweven" valign="top" width="2000">Fixes numbered headings being highlighted as list items and horizontal rules being highlighted as headings. Thanks to Stephen Haberman.</td>
+</tr>
+<tr>
+ <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4515">mkd.vim</a></td>
+ <td class="rowodd" valign="top" nowrap><b>4</b></td>
+ <td class="rowodd" valign="top" nowrap><i>2005-08-24</i></td>
+ <td class="rowodd" valign="top" nowrap>6.0</td>
+ <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=5655">Ben Williams</a></i></td>
+ <td class="rowodd" valign="top" width="2000">Fixes stuff in parentheses being highlighted when not part of a link structure. </td>
+</tr>
+<tr>
+ <td class="roweven" valign="top" nowrap><a href="download_script.php?src_id=4245">mkd.vim</a></td>
+ <td class="roweven" valign="top" nowrap><b>3</b></td>
+ <td class="roweven" valign="top" nowrap><i>2005-05-05</i></td>
+ <td class="roweven" valign="top" nowrap>6.0</td>
+ <td class="roweven" valign="top"><i><a href="/account/profile.php?user_id=5655">Ben Williams</a></i></td>
+ <td class="roweven" valign="top" width="2000">Fixes a problem with indented lists being highlighted as code blocks.</td>
+</tr>
+<tr>
+ <td class="rowodd" valign="top" nowrap><a href="download_script.php?src_id=4050">mkd.vim</a></td>
+ <td class="rowodd" valign="top" nowrap><b>2</b></td>
+ <td class="rowodd" valign="top" nowrap><i>2005-03-21</i></td>
+ <td class="rowodd" valign="top" nowrap>6.0</td>
+ <td class="rowodd" valign="top"><i><a href="/account/profile.php?user_id=5655">Ben Williams</a></i></td>
+ <td class="rowodd" valign="top" width="2000">Initial upload</td>
+</tr>
+</table>
+<!-- finish off the framework -->
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+
+<!-- END OF THE PAGE BODY: BETWEEN HEADER AND FOOTER -->
+
+<table width="100%" cellpadding="0" cellspacing="0" border="0" bordercolor="red">
+ <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr>
+ <tr><td colspan="4" bgcolor="#000000"><img src="/images/spacer.gif" height="2" width="1" alt=""></td></tr>
+ <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr>
+ <tr>
+ <td><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
+
+ <td align="left" valign="top"><small>
+ If you have questions or remarks about this site, visit the
+ <a href="http://vimonline.sf.net">vimonline development</a> pages.
+ Please use this site responsibly.
+ <br>
+
+ Questions about <a href="http://www.vim.org/about.php">Vim</a> should go
+ to the <a href="http://www.vim.org/maillist.php">maillist</a>.
+ Help Bram <a href="http://iccf-holland.org/">help Uganda</a>.
+ </small>
+
+
+
+ <!-- Start of StatCounter Code -->
+ <script type="text/javascript" language="javascript">
+ var sc_project=1417324;
+ var sc_invisible=1;
+ var sc_partition=11;
+ var sc_security="d41633bc";
+ </script>
+
+ <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c12.statcounter.com/counter.php?sc_project=1417324&java=0&security=d41633bc&invisible=0" alt="free tracking" border="0"></a> </noscript>
+ <!-- End of StatCounter Code -->
+ </td>
+
+ <td align="right" valign="top">
+ <a href="http://www.webconceptgroup.net"><img src="/images/logo_sponsor_wcg.jpg" width="131" height="30" border="0" alt="Sponsored by Web Concept Group Inc."></a>
+ <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=8&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
+ </td>
+
+ <td><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
+ </tr>
+
+
+ <tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
+
+ </tr>
+</table>
+
+</body>
+</html>
+
Added: trunk/packages/vim-scripts/syntax/mkd.vim
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-scripts/syntax/mkd.vim?rev=1178&op=file
==============================================================================
--- trunk/packages/vim-scripts/syntax/mkd.vim (added)
+++ trunk/packages/vim-scripts/syntax/mkd.vim Fri Jan 25 06:51:45 2008
@@ -1,0 +1,84 @@
+" Vim syntax file
+" Language: Markdown
+" Maintainer: Ben Williams <benw at plasticboy.com>
+" URL: http://plasticboy.com/markdown-vim-mode/
+" Version: 6
+" Last Change: 2006 September 1
+" Remark: Uses HTML syntax file
+" Remark: I don't do anything with angle brackets (<>) because that would too easily
+" easily conflict with HTML syntax
+" TODO: Do something appropriate with image syntax
+" TODO: Handle stuff contained within stuff (e.g. headings within blockquotes)
+
+
+" Read the HTML syntax to start with
+if version < 600
+ so <sfile>: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 hi link <args>
+else
+ command! -nargs=+ HtmlHiLink hi def link <args>
+endif
+
+syn spell toplevel
+syn case ignore
+syn sync linebreaks=1
+
+"additions to HTML groups
+syn region htmlBold start=/\*\@<!\*\*\*\@!/ end=/\*\@<!\*\*\*\@!/ contains=@Spell,htmlItalic
+syn region htmlItalic start=/\*\@<!\*\*\@!/ end=/*\@<!\*\*\@!/ contains=htmlBold
+syn region htmlBold start=/_\@<!___\@!/ end=/_\@<!___\@!/ contains=htmlItalic
+syn region htmlItalic start=/_\@<!__\@!/ end=/_\@<!__\@!/ contains=htmlBold
+syn region htmlString start="]("ms=s+2 end=")"me=e-1
+syn region htmlLink start="\["ms=s+1 end="\]"me=e-1
+syn region htmlString start="\(\[.*]: *\)\@<=.*" end="$"
+
+"define Markdown groups
+syn match mkdLineContinue ".$" contained
+syn match mkdRule /^\s*\*\s\{0,1}\*\s\{0,1}\*$/
+syn match mkdRule /^\s*-\s\{0,1}-\s\{0,1}-$/
+syn match mkdRule /^\s*_\s\{0,1}_\s\{0,1}_$/
+syn match mkdRule /^\s*-\{3,}$/
+syn match mkdRule /^\s*\*\{3,5}$/
+syn match mkdListItem "^\s*[-*+]\s\+"
+syn match mkdListItem "^\s*\d\+\.\s\+"
+syn match mkdCode /^\(\s\{4,}\|[\t]\+\)[^*-+ ].*$/
+syn region mkdCode start=/`/ end=/`/
+syn region mkdCode start=/\s*``[^`]*/ skip=/`/ end=/[^`]*``\s*/
+syn region mkdBlockquote start=/^\s*>/ end=/$/ contains=mkdLineContinue
+
+"HTML headings
+syn region htmlH1 start="#" end="\($\|#\+\)"
+syn region htmlH2 start="##" end="\($\|#\+\)"
+syn region htmlH3 start="###" end="\($\|#\+\)"
+syn region htmlH4 start="####" end="\($\|#\+\)"
+syn region htmlH5 start="#####" end="\($\|#\+\)"
+syn region htmlH6 start="######" end="\($\|#\+\)"
+syn match htmlH1 /^.\+\n=\+$/
+syn match htmlH2 /^.\+\n-\+$/
+
+"highlighting for Markdown groups
+HtmlHiLink mkdString String
+HtmlHiLink mkdCode String
+HtmlHiLink mkdBlockquote Comment
+HtmlHiLink mkdLineContinue Comment
+HtmlHiLink mkdListItem Identifier
+HtmlHiLink mkdRule Identifier
+
+
+let b:current_syntax = "mkd"
+
+delcommand HtmlHiLink
+" vim: ts=8
More information about the pkg-vim-maintainers
mailing list