Skip to content

Commit 4beba1b

Browse files
committed
add a separate scope to URL protocol and www.
1 parent feaa639 commit 4beba1b

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
@@ -3531,9 +3531,12 @@ contexts:
35313531
# Github Flavoured Markdown
35323532
# After a valid domain, zero or more non-space non-< characters may follow
35333533
# https://github.github.com/gfm/#autolinks-extension-
3534-
- match: (?:(?:https|http|ftp)(://)|www\.)[\w-]+
3534+
- match: (?:(https|http|ftp)(://))(www\.)?[\w-]+|(www\.)[\w-]+
35353535
captures:
3536-
1: punctuation.separator.path.markdown
3536+
1: markup.underline.link.protocol
3537+
2: punctuation.separator.path.markdown
3538+
3: markup.underline.link.www
3539+
4: markup.underline.link.www
35373540
push: autolink-inet-unquoted-content
35383541

35393542
autolink-inet-angled-content:

0 commit comments

Comments
 (0)