From 14c84204b1596ac8d4122b31b2f3cf06e655d098 Mon Sep 17 00:00:00 2001 From: Alexandre Constantino Date: Wed, 10 Feb 2016 19:41:33 +0000 Subject: [PATCH] Fix URL syntax regex Enables domain names that start with digits --- syntax/markdown.vim | 4 ++-- test/syntax.vader | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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; -- 2.39.5