Skip to content

Commit 073708a

Browse files
committed
Merge branch 'st3-develop' into st4-develop
2 parents fbcf6ef + 0c8d7f5 commit 073708a

9 files changed

Lines changed: 97 additions & 10 deletions

messages/3.1.2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ feedback you can use [GitHub issues][issues].
1313

1414
## Changes
1515

16+
* MardownEditings color schemes now underline link urls (fixes #685)
17+
1618
[issues]: https://github.com/SublimeText-Markdown/MarkdownEditing/issues

schemes/MarkdownEditor-ArcDark.sublime-color-scheme

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,19 @@
265265
"scope": "markup.underline.link, constant.other.reference.link",
266266
"foreground": "#555555"
267267
},
268+
{
269+
"name": "Markdown: Link URL Separators",
270+
"scope": "markup.underline.link punctuation.separator",
271+
"foreground": "#555555"
272+
},
268273
{
269274
"name": "Markup: Plain Link",
270-
"scope": "meta.link.inet markup.underline.link, meta.link.email.lt-gt markup.underline.link",
275+
"scope": "meta.link.inet markup.underline.link, meta.link.email markup.underline.link",
276+
"foreground": "#bbbb77"
277+
},
278+
{
279+
"name": "Markdown: Plain Link Separators",
280+
"scope": "meta.link.inet markup.underline.link punctuation.separator, meta.link.email markup.underline.link punctuation.separator",
271281
"foreground": "#bbbb77"
272282
},
273283
{
@@ -350,6 +360,11 @@
350360
"scope": "markup.strikethrough markup.kbd.content",
351361
"foreground": "#484848"
352362
},
363+
{
364+
"name": "Markdown: Underline",
365+
"scope": "markup.underline",
366+
"font_style": "underline"
367+
},
353368

354369
//
355370
// Markups

schemes/MarkdownEditor-Dark.sublime-color-scheme

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,19 @@
273273
"foreground": "#555555",
274274
"background": "#171717"
275275
},
276+
{
277+
"name": "Markdown: Link URL Separators",
278+
"scope": "markup.underline.link punctuation.separator",
279+
"foreground": "#555555"
280+
},
276281
{
277282
"name": "Markdown: Plain Link",
278-
"scope": "meta.link.inet markup.underline.link, meta.link.email.lt-gt markup.underline.link",
283+
"scope": "meta.link.inet markup.underline.link, meta.link.email markup.underline.link",
284+
"foreground": "#bbbb77"
285+
},
286+
{
287+
"name": "Markdown: Plain Link Separators",
288+
"scope": "meta.link.inet markup.underline.link punctuation.separator, meta.link.email markup.underline.link punctuation.separator",
279289
"foreground": "#bbbb77"
280290
},
281291
{
@@ -362,6 +372,11 @@
362372
"foreground": "#484848",
363373
"background": "#222222"
364374
},
375+
{
376+
"name": "Markdown: Underline",
377+
"scope": "markup.underline",
378+
"font_style": "underline"
379+
},
365380

366381
//
367382
// Markups

schemes/MarkdownEditor-Focus.sublime-color-scheme

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,19 @@
294294
"scope": "markup.underline.link, constant.other.reference.link",
295295
"foreground": "#AAAAAA"
296296
},
297+
{
298+
"name": "Markdown: Link URL Separators",
299+
"scope": "markup.underline.link punctuation.separator",
300+
"foreground": "#AAAAAA"
301+
},
297302
{
298303
"name": "Markdown: Plain Link",
299-
"scope": "meta.link.inet markup.underline.link, meta.link.email.lt-gt markup.underline.link",
304+
"scope": "meta.link.inet markup.underline.link, meta.link.email markup.underline.link",
305+
"foreground": "#444488"
306+
},
307+
{
308+
"name": "Markdown: Plain Link Separators",
309+
"scope": "meta.link.inet markup.underline.link punctuation.separator, meta.link.email markup.underline.link punctuation.separator",
300310
"foreground": "#444488"
301311
},
302312
{
@@ -381,6 +391,11 @@
381391
"foreground": "#aaaaaa",
382392
"background": "#cccccc"
383393
},
394+
{
395+
"name": "Markdown: Underline",
396+
"scope": "markup.underline",
397+
"font_style": "underline"
398+
},
384399

385400
//
386401
// Markups

schemes/MarkdownEditor-Yellow.sublime-color-scheme

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,19 @@
271271
"scope": "markup.underline.link, constant.other.reference.link",
272272
"foreground": "#b7a884"
273273
},
274+
{
275+
"name": "Markdown: Link URL Separators",
276+
"scope": "markup.underline.link punctuation.separator",
277+
"foreground": "#b7a884"
278+
},
274279
{
275280
"name": "Markdown: Plain Link",
276-
"scope": "meta.link.inet markup.underline.link, meta.link.email.lt-gt markup.underline.link",
281+
"scope": "meta.link.inet markup.underline.link, meta.link.email markup.underline.link",
282+
"foreground": "#624369"
283+
},
284+
{
285+
"name": "Markdown: Plain Link Separators",
286+
"scope": "meta.link.inet markup.underline.link punctuation.separator, meta.link.email markup.underline.link punctuation.separator",
277287
"foreground": "#624369"
278288
},
279289
{
@@ -360,6 +370,11 @@
360370
"foreground": "#c2b58e",
361371
"background": "#e2daab"
362372
},
373+
{
374+
"name": "Markdown: Underline",
375+
"scope": "markup.underline",
376+
"font_style": "underline"
377+
},
363378

364379
//
365380
// Markups

schemes/MarkdownEditor.sublime-color-scheme

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,19 @@
271271
"scope": "markup.underline.link, constant.other.reference.link",
272272
"foreground": "#AAAAAA"
273273
},
274+
{
275+
"name": "Markdown: Link URL Separators",
276+
"scope": "markup.underline.link punctuation.separator",
277+
"foreground": "#AAAAAA"
278+
},
274279
{
275280
"name": "Markdown: Plain Link",
276-
"scope": "meta.link.inet markup.underline.link, meta.link.email.lt-gt markup.underline.link",
281+
"scope": "meta.link.inet markup.underline.link, meta.link.email markup.underline.link",
282+
"foreground": "#444488"
283+
},
284+
{
285+
"name": "Markdown: Plain Link Separators",
286+
"scope": "meta.link.inet markup.underline.link punctuation.separator, meta.link.email markup.underline.link punctuation.separator",
277287
"foreground": "#444488"
278288
},
279289
{
@@ -359,6 +369,11 @@
359369
"foreground": "#B7B7B7",
360370
"background": "#E6E6E6"
361371
},
372+
{
373+
"name": "Markdown: Underline",
374+
"scope": "markup.underline",
375+
"font_style": "underline"
376+
},
362377

363378
//
364379
// Markups

syntaxes/Markdown.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3159,7 +3159,7 @@ contexts:
31593159
scope: punctuation.definition.attributes.end.markdown
31603160
pop: true
31613161
- match: \,
3162-
scope: punctuation.separator.mapping.pair.markdown
3162+
scope: punctuation.separator.sequence.markdown
31633163
- match: '{{tag_attribute_name_start}}'
31643164
push: [tag-attr-meta, tag-attr-equals, tag-attr-name]
31653165

syntaxes/Shell (for Markdown).sublime-syntax

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ contexts:
1111
prototype:
1212
- meta_prepend: true
1313
# continuation lines begin with `> `
14-
- match: ^>(?=\s)
14+
- match: ^\s*(>)\s
15+
captures:
16+
1: comment.other.shell
1517
scope: comment.other.shell
1618

1719
main:
18-
- match: ^(?=\$\s)
20+
- match: ^(?=\s*\$\s)
1921
push: shell-interactive
2022
- include: statements
2123

2224
shell-interactive:
23-
- match: ^\$(?=\s)
24-
scope: comment.other.shell
25+
- match: ^\s*(\$)(?=\s)
26+
captures:
27+
1: comment.other.shell
2528
embed: statements
2629
escape: (?<![^\\]\\)(?<![\\]{3})\n

tests/syntax_test_markdown.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1965,6 +1965,13 @@ function foo () {}
19651965
| <- meta.code-fence.definition.end.shell.markdown-gfm punctuation.definition.raw.code-fence.end.markdown
19661966
|^^ meta.code-fence.definition.end.shell.markdown-gfm punctuation.definition.raw.code-fence.end.markdown
19671967

1968+
```shell
1969+
$ ls
1970+
| ^^^^^ markup.raw.code-fence.shell.markdown-gfm source.shell.interactive.markdown
1971+
| ^ comment.other.shell
1972+
| ^^ meta.function-call.identifier.shell variable.function.shell
1973+
```
1974+
19681975
```shell-script
19691976

19701977
| <- markup.raw.code-fence.shell-script.markdown-gfm source.shell.bash

0 commit comments

Comments
 (0)