@@ -141,23 +141,23 @@ repository:
141141 # ***Bold italic***
142142 name : " markup.bold.italic.strong.emphasis.muse"
143143 begin : " (?<=\\ W|^)(\\ *{3})(?=\\ S)"
144- end : " (?<=\\ S)\\ 1(?=\\ W|$)|(?=^[ \\ t]*$)"
144+ end : " (?<=\\ S)\\ 1(?! \\ *+ \\ w)(? =\\ W|$)|(?=^[ \\ t]*$)"
145145 beginCaptures : 1 : name : " punctuation.definition.emphasis.begin.muse"
146146 endCaptures : 0 : name : " punctuation.definition.emphasis.end.muse"
147147 patterns : [include : " #inlineInnards" ]
148148 },{
149149 # **Bold**
150150 name : " markup.bold.strong.emphasis.muse"
151151 begin : " (?<=\\ W|^)(\\ *{2})(?=\\ S)"
152- end : " (?<=\\ S)\\ 1(?=\\ W|$)|(?=^[ \\ t]*$)"
152+ end : " (?<=\\ S)\\ 1(?! \\ *+ \\ w)(? =\\ W|$)|(?=^[ \\ t]*$)"
153153 beginCaptures : 1 : name : " punctuation.definition.emphasis.begin.muse"
154154 endCaptures : 0 : name : " punctuation.definition.emphasis.end.muse"
155155 patterns : [include : " #inlineInnards" ]
156156 },{
157157 # *Italic*
158158 name : " markup.italic.emphasis.muse"
159159 begin : " (?<=\\ W|^)\\ *(?=\\ S)"
160- end : " (?<=\\ S)\\ *(?=\\ W|$)|(?=^[ \\ t]*$)"
160+ end : " (?<=\\ S)\\ *(?! \\ *+ \\ w)(? =\\ W|$)|(?=^[ \\ t]*$)"
161161 beginCaptures : 0 : name : " punctuation.definition.emphasis.begin.muse"
162162 endCaptures : 0 : name : " punctuation.definition.emphasis.end.muse"
163163 patterns : [include : " #inlineInnards" ]
@@ -262,7 +262,7 @@ repository:
262262 patterns : [{
263263 # Swallow asterisks embedded between word characters.
264264 # See: Alhadis/language-emacs-lisp#5, jgm/pandoc#5821
265- match : " (?<= \\ w)\\ *+(?=\\ w)"
265+ match : " (?:(?= \\ G|^)|(?<=[ \\ w*]) )\\ *+(?=\\ w)"
266266
267267 }, include : " #inline" ]
268268
0 commit comments