File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 7
7
<key >hideFromUser </key >
8
8
<true />
9
9
<key >injectionSelector </key >
10
- <string >(L:text.html.markdown markup.italic.markdown ) </string >
10
+ <string >(L:text.html.markdown) </string >
11
11
<key >name </key >
12
12
<string >Markdown (GitHub Italics) </string >
13
13
<key >patterns </key >
22
22
</dict >
23
23
</dict >
24
24
<key >comment </key >
25
- <string >This rule matches underscores inside italics rules to catch the difference
26
- between the handling of these between the standard Markdown and GitHub's
27
- variant. </string >
25
+ <string >This rule matches underscores inside words to avoid italicizing partial words
26
+ (the grammar gets injected into the main Markdown grammar, so its rules have higher
27
+ precedence and thus prevent the main Markdown grammar’s pattern for italic text from
28
+ matching these underscores.) </string >
28
29
<key >match </key >
29
- <string >(_)(?=\w)(?< =\w_ ) </string >
30
+ <string >(_)(?=\w)(?< =\w ) </string >
30
31
<key >name </key >
31
- <string >markup.italic.markdown.github </string >
32
+ <string >markup.other </string >
32
33
</dict >
33
34
</array >
34
35
<key >scopeName </key >
You can’t perform that action at this time.
0 commit comments