From c9d0198edbc5f0bceba5b95c9ac96a339894da4f Mon Sep 17 00:00:00 2001 From: eugenesvk Date: Mon, 7 Aug 2023 14:38:46 +0700 Subject: [PATCH 1/2] add a separate scope to URL protocol and www. --- syntaxes/Markdown.sublime-syntax | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: From 9b73eddfb1ecfebe20c08b2e5119f8112cf3dfde Mon Sep 17 00:00:00 2001 From: eugenesvk Date: Mon, 7 Aug 2023 14:01:00 +0700 Subject: [PATCH 2/2] add upgrade message --- messages/next.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 messages/next.md 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