Skip to content

Commit c9d0198

Browse files
committed
add a separate scope to URL protocol and www.
1 parent 8bd9216 commit c9d0198

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

syntaxes/Markdown.sublime-syntax

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4045,9 +4045,12 @@ contexts:
40454045
# Github Flavoured Markdown
40464046
# After a valid domain, zero or more non-space non-< characters may follow
40474047
# https://github.github.com/gfm/#autolinks-extension-
4048-
- match: (?:(?:https|http|ftp)(://)|www\.)[\w-]+
4048+
- match: (?:(https|http|ftp)(://))(www\.)?[\w-]+|(www\.)[\w-]+
40494049
captures:
4050-
1: punctuation.separator.path.markdown
4050+
1: markup.underline.link.protocol
4051+
2: punctuation.separator.path.markdown
4052+
3: markup.underline.link.www
4053+
4: markup.underline.link.www
40514054
push: autolink-inet-unquoted-content
40524055

40534056
autolink-inet-angled-content:

0 commit comments

Comments
 (0)