Skip to content

Commit 4b2b0ab

Browse files
committed
Correct location of look-behind assertion
A quirk of the engine allows the old to somewhat work but it should be looking before the `_`.
1 parent bdf0dfa commit 4b2b0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Syntaxes/Markdown (GitHub Italics).tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
precedence and thus prevent the main Markdown grammar’s pattern for italic text from
2828
matching these underscores.)</string>
2929
<key>match</key>
30-
<string>(_)(?=\w)(?&lt;=\w)</string>
30+
<string>(?&lt;=\w)(_)(?=\w)</string>
3131
<key>name</key>
3232
<string>markup.other</string>
3333
</dict>

0 commit comments

Comments
 (0)