diff --git a/messages/next.md b/messages/next.md new file mode 100644 index 00000000..671e6037 --- /dev/null +++ b/messages/next.md @@ -0,0 +1,13 @@ +# MarkdownEditing {version} Changelog + +Your _MarkdownEditing_ plugin is updated. Enjoy new version. For any type of +feedback you can use [GitHub issues][issues]. + +## Bug Fixes + +## New Features + - add a separate scope `markup.underline.link.protocol` to allow synax highlight e.g. `https` in urls separtely from the rest of the url + - add a separate scope `markup.underline.link.www` to allow synax highlight `www.` in urls separtely from the rest of the url +## Changes + +[issues]: https://github.com/SublimeText-Markdown/MarkdownEditing/issues diff --git a/syntaxes/Markdown.sublime-syntax b/syntaxes/Markdown.sublime-syntax index 05b76d66..91045e5b 100644 --- a/syntaxes/Markdown.sublime-syntax +++ b/syntaxes/Markdown.sublime-syntax @@ -4045,9 +4045,12 @@ contexts: # Github Flavoured Markdown # After a valid domain, zero or more non-space non-< characters may follow # https://github.github.com/gfm/#autolinks-extension- - - match: (?:(?:https|http|ftp)(://)|www\.)[\w-]+ + - match: (?:(https|http|ftp)(://))(www\.)?[\w-]+|(www\.)[\w-]+ captures: - 1: punctuation.separator.path.markdown + 1: markup.underline.link.protocol + 2: punctuation.separator.path.markdown + 3: markup.underline.link.www + 4: markup.underline.link.www push: autolink-inet-unquoted-content autolink-inet-angled-content: