@@ -141,23 +141,23 @@ repository:
141
141
# ***Bold italic***
142
142
name : " markup.bold.italic.strong.emphasis.muse"
143
143
begin : " (?<=\\ W|^)(\\ *{3})(?=\\ S)"
144
- end : " (?<=\\ S)\\ 1(?=\\ W|$)|(?=^[ \\ t]*$)"
144
+ end : " (?<=\\ S)\\ 1(?! \\ *+ \\ w)(? =\\ W|$)|(?=^[ \\ t]*$)"
145
145
beginCaptures : 1 : name : " punctuation.definition.emphasis.begin.muse"
146
146
endCaptures : 0 : name : " punctuation.definition.emphasis.end.muse"
147
147
patterns : [include : " #inlineInnards" ]
148
148
},{
149
149
# **Bold**
150
150
name : " markup.bold.strong.emphasis.muse"
151
151
begin : " (?<=\\ W|^)(\\ *{2})(?=\\ S)"
152
- end : " (?<=\\ S)\\ 1(?=\\ W|$)|(?=^[ \\ t]*$)"
152
+ end : " (?<=\\ S)\\ 1(?! \\ *+ \\ w)(? =\\ W|$)|(?=^[ \\ t]*$)"
153
153
beginCaptures : 1 : name : " punctuation.definition.emphasis.begin.muse"
154
154
endCaptures : 0 : name : " punctuation.definition.emphasis.end.muse"
155
155
patterns : [include : " #inlineInnards" ]
156
156
},{
157
157
# *Italic*
158
158
name : " markup.italic.emphasis.muse"
159
159
begin : " (?<=\\ W|^)\\ *(?=\\ S)"
160
- end : " (?<=\\ S)\\ *(?=\\ W|$)|(?=^[ \\ t]*$)"
160
+ end : " (?<=\\ S)\\ *(?! \\ *+ \\ w)(? =\\ W|$)|(?=^[ \\ t]*$)"
161
161
beginCaptures : 0 : name : " punctuation.definition.emphasis.begin.muse"
162
162
endCaptures : 0 : name : " punctuation.definition.emphasis.end.muse"
163
163
patterns : [include : " #inlineInnards" ]
@@ -262,7 +262,7 @@ repository:
262
262
patterns : [{
263
263
# Swallow asterisks embedded between word characters.
264
264
# See: Alhadis/language-emacs-lisp#5, jgm/pandoc#5821
265
- match : " (?<= \\ w)\\ *+(?=\\ w)"
265
+ match : " (?:(?= \\ G|^)|(?<=[ \\ w*]) )\\ *+(?=\\ w)"
266
266
267
267
}, include : " #inline" ]
268
268
0 commit comments