@@ -0,0 +1,168 @@
1+diff --git syntaxes/01_Packages/Markdown/Markdown.sublime-syntax syntaxes/01_Packages/Markdown/Markdown.sublime-syntax
2+index 19dc685d..6afd87ae 100644
3+--- syntaxes/01_Packages/Markdown/Markdown.sublime-syntax
4++++ syntaxes/01_Packages/Markdown/Markdown.sublime-syntax
5+@@ -24,7 +24,6 @@ variables:
6+ )
7+ [ \t]*$ # followed by any number of tabs or spaces, followed by the end of the line
8+ )
9+- setext_escape: ^(?=\s{0,3}(?:---+|===+)\s*$)
10+ block_quote: (?:[ ]{,3}>(?:.|$)) # between 0 and 3 spaces, followed by a greater than sign, followed by any character or the end of the line
11+ atx_heading: (?:[#]{1,6}\s*) # between 1 and 6 hashes, followed by any amount of whitespace
12+ indented_code_block: (?:[ ]{4}|\t) # 4 spaces or a tab
13+@@ -277,69 +276,40 @@ contexts:
14+ 8: markup.underline.link.markdown
15+ push: [link-ref-def, after-link-title, link-title]
16+ - match: '^(?=\S)(?![=-]{3,}\s*$)'
17+- branch_point: heading2-branch
18+- branch:
19+- - not-heading2
20+- - heading2
21+-
22+- not-paragraph:
23+- - match: |-
24+- (?x) # pop out of this context when one of the following conditions are met:
25+- ^(?:
26+- \s*$ # the line is blank (or only contains whitespace)
27+- | (?=
28+- {{block_quote}} # a block quote begins the line
29+- | [ ]{,3}[*+-][ ] # an unordered list item begins the line
30+- | [ ]{,3}1[.][ ] # an ordered list item with number "1" begins the line
31+- | \# # an ATX heading begins the line
32+- | [ ]{,3}<( # all types of HTML blocks except type 7 may interrupt a paragraph
33+- {{html_tag_block_end_at_close_tag}} # 1
34+- | !-- # 2
35+- | \? # 3
36+- | ![A-Z] # 4
37+- | !\[CDATA\[ # 5
38+- | {{html_tag_block_end_at_blank_line}} # 6
39++ push:
40++ - meta_scope: meta.paragraph.markdown
41++ - match: |-
42++ (?x) # pop out of this context when one of the following conditions are met:
43++ ^(?:
44++ \s*$ # the line is blank (or only contains whitespace)
45++ | (?=
46++ {{block_quote}} # a block quote begins the line
47++ | [ ]{,3}[*+-][ ] # an unordered list item begins the line
48++ | [ ]{,3}1[.][ ] # an ordered list item with number "1" begins the line
49++ | \# # an ATX heading begins the line
50++ | [ ]{,3}<( # all types of HTML blocks except type 7 may interrupt a paragraph
51++ {{html_tag_block_end_at_close_tag}} # 1
52++ | !-- # 2
53++ | \? # 3
54++ | ![A-Z] # 4
55++ | !\[CDATA\[ # 5
56++ | {{html_tag_block_end_at_blank_line}} # 6
57++ )
58+ )
59+ )
60+- )
61+- pop: true
62+-
63+- not-heading2:
64+- - include: not-paragraph
65+- - match: (?=\S)
66+- branch_point: heading1-branch
67+- branch:
68+- - paragraph
69+- - heading1
70+- - match: ''
71+- pop: true
72+-
73+- paragraph:
74+- - meta_scope: meta.paragraph.markdown
75+- - match: ^\s{0,3}===+\s*$
76+- fail: heading1-branch
77+- - match: ^\s{0,3}---+\s*$
78+- fail: heading2-branch
79+- - include: not-paragraph
80+- - include: inline-bold-italic-linebreak
81+- - include: scope:text.html.basic
82+-
83+- heading1:
84+- - meta_scope: markup.heading.1.markdown
85+- - include: inline-bold-italic-linebreak
86+- - match: '^[ \t]{0,3}(={3,})(?=[ \t]*$)'
87+- captures:
88+- 1: markup.heading.1.setext.markdown punctuation.definition.heading.setext.markdown
89+- pop: true
90+-
91+- heading2:
92+- - meta_scope: markup.heading.2.markdown
93+- - include: inline-bold-italic-linebreak
94+- - match: '^[ \t]{0,3}(-{3,})(?=[ \t]*$)'
95+- captures:
96+- 1: markup.heading.2.setext.markdown punctuation.definition.heading.setext.markdown
97+- pop: true
98+-
99++ pop: true
100++ - include: inline-bold-italic-linebreak
101++ - include: scope:text.html.basic
102++ - match: '^(={3,})(?=[ \t]*$)'
103++ scope: markup.heading.1.setext.markdown
104++ captures:
105++ 1: punctuation.definition.heading.setext.markdown
106++ pop: true
107++ - match: '^(-{3,})(?=[ \t]*$)'
108++ scope: markup.heading.2.setext.markdown
109++ captures:
110++ 1: punctuation.definition.heading.setext.markdown
111++ pop: true
112+ link-ref-def:
113+ - meta_scope: meta.link.reference.def.markdown
114+ - match: ''
115+@@ -430,8 +400,6 @@ contexts:
116+ push:
117+ - meta_scope: markup.bold.markdown
118+ - meta_content_scope: markup.italic.markdown
119+- - match: '{{setext_escape}}'
120+- pop: true
121+ - match: |-
122+ (?x)
123+ [ \t]*\*{4,} # if there are more than 3 its not applicable to be bold or italic
124+@@ -446,8 +414,6 @@ contexts:
125+ scope: punctuation.definition.bold.end.markdown
126+ set:
127+ - meta_content_scope: markup.italic.markdown
128+- - match: '{{setext_escape}}'
129+- pop: true
130+ - match: |-
131+ (?x)
132+ [ \t]*\*{3,} # if there are more than 3 its not applicable to be bold or italic
133+@@ -463,8 +429,6 @@ contexts:
134+ scope: punctuation.definition.italic.end.markdown
135+ set:
136+ - meta_content_scope: markup.bold.markdown
137+- - match: '{{setext_escape}}'
138+- pop: true
139+ - match: |-
140+ (?x)
141+ [ \t]*\*{3,} # if there are more than 3 its not applicable to be bold or italic
142+@@ -727,8 +691,6 @@ contexts:
143+ scope: punctuation.definition.italic.begin.markdown
144+ push:
145+ - meta_scope: markup.italic.markdown
146+- - match: '{{setext_escape}}'
147+- pop: true
148+ - match: |-
149+ (?x)
150+ [ \t]*\*{4,} # if there are more than 3 its not applicable to be bold or italic
151+@@ -745,8 +707,6 @@ contexts:
152+ scope: punctuation.definition.italic.begin.markdown
153+ push:
154+ - meta_scope: markup.italic.markdown
155+- - match: '{{setext_escape}}'
156+- pop: true
157+ - match: |-
158+ (?x)
159+ [ \t]*_{4,} # if there are more than 3 its not applicable to be bold or italic
160+@@ -773,8 +733,6 @@ contexts:
161+ - include: bold-italic-trailing
162+ bold-italic-trailing:
163+ - include: scope:text.html.basic
164+- - match: '{{setext_escape}}'
165+- pop: true
166+ - match: ^\s*$\n?
167+ scope: invalid.illegal.non-terminated.bold-italic.markdown
168+ pop: true