提交 0b70faee 编写于 作者: M Matt Bierner 提交者: Kai Maetzel

Fix colorization of markdown links and inlines inside of lists and quotes

Issue #12344

**Bug**
Current colorization rules are too relaxed. Links inside lists of block quotes for example end up getting colored differently than normal links.

**Fix**
- Add a scope to the textmate markdown grammar so that we can identify the symbol that starts a list or quote.
- Remove text colorization rule for lists and quotes since this just duplicates the normal text color.
- Only apply special puctuator colorization to the start symbol for lists and quotes
上级 93d16ef3
......@@ -222,7 +222,7 @@
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.quote.markdown</string>
<string>beginning.punctuation.definition.quote.markdown</string>
</dict>
</dict>
<key>name</key>
......@@ -436,7 +436,7 @@
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.list.markdown</string>
<string>beginning.punctuation.definition.list.markdown</string>
</dict>
</dict>
<key>comment</key>
......@@ -465,7 +465,7 @@
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.list.markdown</string>
<string>beginning.punctuation.definition.list.markdown</string>
</dict>
</dict>
<key>name</key>
......
......@@ -137,23 +137,17 @@
}
},
{
"scope": "markup.punctuation.quote",
"scope": "markup.punctuation.quote.beginning",
"settings": {
"foreground": "#608b4e"
}
},
{
"scope": "markup.punctuation.list",
"scope": "markup.punctuation.list.beginning",
"settings": {
"foreground": "#6796e6"
}
},
{
"scope": ["markup.quote", "markup.list"],
"settings": {
"foreground": "#d4d4d4"
}
},
{
"scope": "markup.inline.raw",
"settings": {
......
......@@ -48,12 +48,6 @@
"settings": {
"foreground": "#001080"
}
},
{
"scope": ["markup.quote", "markup.list"],
"settings": {
"foreground": "#0451a5"
}
}
]
}
\ No newline at end of file
......@@ -128,17 +128,11 @@
}
},
{
"scope": ["markup.punctuation.quote", "markup.punctuation.list"],
"scope": ["markup.punctuation.quote.beginning", "markup.punctuation.list.beginning"],
"settings": {
"foreground": "#0451a5"
}
},
{
"scope": ["markup.quote", "markup.list"],
"settings": {
"foreground": "#000000"
}
},
{
"scope": "markup.inline.raw",
"settings": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册