From: Alexandre Constantino Date: Wed, 10 Feb 2016 19:41:33 +0000 (+0000) Subject: Fix URL syntax regex X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/14c84204b1596ac8d4122b31b2f3cf06e655d098?ds=sidebyside;hp=--cc Fix URL syntax regex Enables domain names that start with digits --- 14c84204b1596ac8d4122b31b2f3cf06e655d098 diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 9e0eb49..07adae9 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -62,8 +62,8 @@ execute 'syn region mkdLink matchgroup=mkdDelimiter start="\\\@'), 'mkdDelimiter' AssertNotEqual SyntaxOf('c'), 'mkdInlineURL' +Given markdown; +http://12monkeys.foo + +Execute (autolink with domain starting with a number): + AssertEqual SyntaxOf('12monkeys'), 'mkdInlineURL' + Given markdown;