Skip to content

Commit 1df39dc

Browse files
authored
Merge pull request #770 from SublimeText-Markdown/st4-develop
ST4 next
2 parents 88f589f + 94add27 commit 1df39dc

8 files changed

+42
-4
lines changed

schemes/MarkdownEditor-ArcDark.sublime-color-scheme

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,12 @@
394394
"scope": "markup.prompt",
395395
"foreground": "#aaaaaa"
396396
},
397+
{
398+
"name": "Markup: Highlight",
399+
"scope": "markup.highlight",
400+
"foreground": "var(critic_highlight_fg)",
401+
"background": "var(critic_highlight_bg)"
402+
},
397403

398404
//
399405
// CriticMarkup

schemes/MarkdownEditor-Dark.sublime-color-scheme

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,12 @@
406406
"scope": "markup.prompt",
407407
"foreground": "#aaaaaa"
408408
},
409+
{
410+
"name": "Markup: Highlight",
411+
"scope": "markup.highlight",
412+
"foreground": "var(critic_highlight_fg)",
413+
"background": "var(critic_highlight_bg)"
414+
},
409415

410416
//
411417
// CriticMarkup

schemes/MarkdownEditor-Focus.sublime-color-scheme

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,12 @@
425425
"scope": "markup.prompt",
426426
"foreground": "#555555"
427427
},
428+
{
429+
"name": "Markup: Highlight",
430+
"scope": "markup.highlight",
431+
"foreground": "var(critic_highlight_fg)",
432+
"background": "var(critic_highlight_bg)"
433+
},
428434

429435
//
430436
// CriticMarkup

schemes/MarkdownEditor-Yellow.sublime-color-scheme

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,12 @@
404404
"scope": "markup.prompt",
405405
"foreground": "#705442"
406406
},
407+
{
408+
"name": "Markup: Highlight",
409+
"scope": "markup.highlight",
410+
"foreground": "var(critic_highlight_fg)",
411+
"background": "var(critic_highlight_bg)"
412+
},
407413

408414
//
409415
// CriticMarkup

schemes/MarkdownEditor.sublime-color-scheme

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,12 @@
403403
"scope": "markup.prompt",
404404
"foreground": "#555555"
405405
},
406+
{
407+
"name": "Markup: Highlight",
408+
"scope": "markup.highlight",
409+
"foreground": "var(critic_highlight_fg)",
410+
"background": "var(critic_highlight_bg)"
411+
},
406412

407413
//
408414
// CriticMarkup

syntaxes/Markdown.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4016,7 +4016,7 @@ contexts:
40164016
- meta_scope: meta.link.inet.markdown markup.underline.link.markdown-gfm
40174017
# 1. When an autolink ends in ), we scan the entire autolink for the total
40184018
# number of parentheses. If there is a greater number of closing parentheses
4019-
# than opening ones, we don’t consider the last character part of the
4019+
# than opening ones, we don't consider the last character part of the
40204020
# autolink, in order to facilitate including an autolink inside a parenthesis
40214021
# 2. If an autolink ends in a semicolon (;), we check to see if it appears to
40224022
# resemble an entity reference; if the preceding text is & followed by one

syntaxes/Shell (for Markdown).sublime-syntax

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ contexts:
1414
- match: ^\s*(>)\s
1515
captures:
1616
1: comment.other.shell
17-
scope: comment.other.shell
1817

1918
main:
2019
- match: ^(?=\s*\$\s)
@@ -27,3 +26,12 @@ contexts:
2726
1: comment.other.shell
2827
embed: statements
2928
escape: (?<![^\\]\\)(?<![\\]{3})\n
29+
30+
line-continuation-body:
31+
- meta_prepend: true
32+
- meta_include_prototype: false
33+
# continuation lines begin with `> `
34+
- match: ^\s*(>)\s
35+
captures:
36+
1: comment.other.shell
37+
pop: 1

tests/syntax_test_markdown.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@ foo
17901790
# test
17911791
| ^^^^^ source.shell comment.line.number-sign
17921792
echo hello, \
1793-
| ^^ punctuation.separator.continuation.line
1793+
| ^ punctuation.separator.continuation.line
17941794
echo This is a smiley :-\) \(I have to escape the parentheses, though!\)
17951795
| ^^ constant.character.escape
17961796
```
@@ -2045,7 +2045,7 @@ unclosed_paren = (
20452045
function foo () {
20462046
| <- markup.raw.code-fence.shell.markdown-gfm meta.function.shell keyword.declaration.function.shell
20472047
}
2048-
| <- markup.raw.code-fence.shell.markdown-gfm meta.function.shell meta.compound.shell punctuation.section.compound.end.shell
2048+
| <- markup.raw.code-fence.shell.markdown-gfm meta.function.shell punctuation.section
20492049

20502050
$ ls ~
20512051
| <- markup.raw.code-fence.shell.markdown-gfm source.shell.interactive comment.other.shell

0 commit comments

Comments
 (0)