Skip to content

Commit c34a1e6

Browse files
committed
Merge branch 'st3-develop' into st4-develop
2 parents e25fbb1 + 0fb999f commit c34a1e6

4 files changed

Lines changed: 29 additions & 9 deletions

File tree

messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@
4646
"3.1.9": "messages/3.1.9.md",
4747
"3.1.10": "messages/3.1.10.md",
4848
"3.1.11": "messages/3.1.11.md",
49-
"3.1.12": "messages/3.1.12.md"
49+
"3.1.12": "messages/3.1.12.md",
50+
"3.1.13": "messages/3.1.13.md"
5051
}

messages/next.md renamed to messages/3.1.13.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# MarkdownEditing {version} Changelog
1+
# MarkdownEditing 3.1.13 Changelog
22

33
Your _MarkdownEditing_ plugin is updated. Enjoy new version. For any type of
44
feedback you can use [GitHub issues][issues].
@@ -7,6 +7,7 @@ feedback you can use [GitHub issues][issues].
77

88
- fix premature block quote termination
99
- fix extra backticks when creating fenced code blocks (#749)
10+
- fix syntax highlighting of single backticks and code-spans in table cells
1011

1112
## New Features
1213

syntaxes/Markdown.sublime-syntax

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# The scope suffix should indicate which flavor of Markdown the feature came from,
1111
# to help make this syntax definition easier to maintain.
12-
name: Markdown
12+
name: Markdown (MDE)
1313
scope: text.html.markdown
1414
version: 2
1515
hidden: true
@@ -3135,14 +3135,22 @@ contexts:
31353135
table-cell-content:
31363136
- match: (?={{balanced_emphasis}})
31373137
push: table-cell-emphasis
3138-
- match: (?!{{backticks}})`+
3139-
scope: invalid.deprecated.unescaped-backticks.markdown
3138+
- include: table-cell-code-spans
31403139
- include: table-cell-separators
31413140
- include: images
3142-
- include: literals
3141+
- include: critics
3142+
- include: math-inline
3143+
- include: escapes
31433144
- include: links
31443145
- include: markups
31453146

3147+
table-cell-code-spans:
3148+
- match: (`+)[^`|]+(\1)
3149+
scope: markup.raw.inline.markdown
3150+
captures:
3151+
1: punctuation.definition.raw.begin.markdown
3152+
2: punctuation.definition.raw.end.markdown
3153+
31463154
table-cell-emphasis:
31473155
- include: emphasis
31483156
- include: immediately-pop

tests/syntax_test_markdown.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3178,8 +3178,9 @@ bar | baz
31783178
| f\|oo |
31793179
| ------ |
31803180
| b `|` az |
3181-
| ^^^ meta.table markup.raw.inline - meta.table.header-separator
3182-
| ^ meta.table punctuation.separator.table-cell
3181+
|^^^^^^^^^^^ meta.table.markdown-gfm - markup.raw
3182+
| ^ punctuation.separator.table-cell.markdown
3183+
| ^ punctuation.separator.table-cell.markdown
31833184
| b **|** im |
31843185
| <- meta.table punctuation.separator.table-cell
31853186
| ^^^^^ meta.table markup.bold - punctuation.separator.table-cell
@@ -3248,8 +3249,17 @@ not a table |
32483249
| ^ punctuation.separator.table-cell
32493250
| ^ punctuation.separator.table-cell
32503251
|`test | me |
3251-
|^ invalid.deprecated.unescaped-backticks
3252+
|^^^^^^^^^^^^^ meta.table.markdown-gfm - markup.raw
32523253
| ^ punctuation.separator.table-cell
3254+
| ` ` | ` me ` |
3255+
| <- meta.table.markdown-gfm punctuation.separator.table-cell.markdown
3256+
| ^^^ meta.table.markdown-gfm markup.raw.inline.markdown
3257+
| ^ punctuation.definition.raw.begin.markdown
3258+
| ^ punctuation.definition.raw.end.markdown
3259+
| ^ punctuation.separator.table-cell
3260+
| ^^^^^^ markup.raw.inline.markdown
3261+
| ^ punctuation.definition.raw.begin.markdown
3262+
| ^ punctuation.definition.raw.end.markdown
32533263

32543264
| table | followed by
32553265
paragraph

0 commit comments

Comments
 (0)