Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
2cbe56f3
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2cbe56f3
编写于
4月 09, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update markdown grammar
Pulls in new header scopes for #47113
上级
a786ed34
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
135 addition
and
90 deletion
+135
-90
extensions/markdown-basics/syntaxes/markdown.tmLanguage.json
extensions/markdown-basics/syntaxes/markdown.tmLanguage.json
+94
-5
extensions/markdown-basics/test/colorize-results/test-33886_md.json
.../markdown-basics/test/colorize-results/test-33886_md.json
+9
-9
extensions/markdown-basics/test/colorize-results/test_md.json
...nsions/markdown-basics/test/colorize-results/test_md.json
+32
-76
未找到文件。
extensions/markdown-basics/syntaxes/markdown.tmLanguage.json
浏览文件 @
2cbe56f3
...
...
@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository."
,
"Once accepted there, we are happy to receive an update request."
],
"version"
:
"https://github.com/microsoft/vscode-markdown-tm-grammar/commit/6
e1063a71d4d017f976ccbe3d68138f4662c9a66
"
,
"version"
:
"https://github.com/microsoft/vscode-markdown-tm-grammar/commit/6
41c88a57c3f33ef8bcb504202f8330acef39b9e
"
,
"name"
:
"Markdown"
,
"scopeName"
:
"text.html.markdown"
,
"patterns"
:
[
...
...
@@ -1668,14 +1668,103 @@
"name"
:
"markup.fenced_code.block.markdown"
},
"heading"
:
{
"
begin"
:
"(?:^|
\\
G)[ ]{0,3}(#{1,6})
\\
s*(?=[
\\
S[^#]])
"
,
"
match"
:
"(?:^|
\\
G)[ ]{0,3}((#{1,6})
\\
s*(?=[
\\
S[^#]]).*?
\\
s*(#{1,6})?)$
\\
n?
"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.heading.markdown"
"patterns"
:
[
{
"match"
:
"(#{6})
\\
s*(?=[
\\
S[^#]])(.*?)
\\
s*(
\\
s+#+)?$
\\
n?"
,
"name"
:
"heading.6.markdown"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.heading.markdown"
},
"2"
:
{
"name"
:
"entity.name.section.markdown"
},
"3"
:
{
"name"
:
"punctuation.definition.heading.markdown"
}
}
},
{
"match"
:
"(#{5})
\\
s*(?=[
\\
S[^#]])(.*?)
\\
s*(
\\
s+#+)?$
\\
n?"
,
"name"
:
"heading.5.markdown"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.heading.markdown"
},
"2"
:
{
"name"
:
"entity.name.section.markdown"
},
"3"
:
{
"name"
:
"punctuation.definition.heading.markdown"
}
}
},
{
"match"
:
"(#{4})
\\
s*(?=[
\\
S[^#]])(.*?)
\\
s*(
\\
s+#+)?$
\\
n?"
,
"name"
:
"heading.4.markdown"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.heading.markdown"
},
"2"
:
{
"name"
:
"entity.name.section.markdown"
},
"3"
:
{
"name"
:
"punctuation.definition.heading.markdown"
}
}
},
{
"match"
:
"(#{3})
\\
s*(?=[
\\
S[^#]])(.*?)
\\
s*(
\\
s+#+)?$
\\
n?"
,
"name"
:
"heading.3.markdown"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.heading.markdown"
},
"2"
:
{
"name"
:
"entity.name.section.markdown"
},
"3"
:
{
"name"
:
"punctuation.definition.heading.markdown"
}
}
},
{
"match"
:
"(#{2})
\\
s*(?=[
\\
S[^#]])(.*?)
\\
s*(
\\
s+#+)?$
\\
n?"
,
"name"
:
"heading.2.markdown"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.heading.markdown"
},
"2"
:
{
"name"
:
"entity.name.section.markdown"
},
"3"
:
{
"name"
:
"punctuation.definition.heading.markdown"
}
}
},
{
"match"
:
"(#{1})
\\
s*(?=[
\\
S[^#]])(.*?)
\\
s*(
\\
s+#+)?$
\\
n?"
,
"name"
:
"heading.1.markdown"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.heading.markdown"
},
"2"
:
{
"name"
:
"entity.name.section.markdown"
},
"3"
:
{
"name"
:
"punctuation.definition.heading.markdown"
}
}
}
]
}
},
"contentName"
:
"entity.name.section.markdown"
,
"end"
:
"
\\
s*(#{1,6})?$
\\
n?"
,
"name"
:
"markup.heading.markdown"
,
"patterns"
:
[
{
...
...
extensions/markdown-basics/test/colorize-results/test-33886_md.json
浏览文件 @
2cbe56f3
[
{
"c"
:
"#"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -12,7 +12,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -23,7 +23,7 @@
},
{
"c"
:
"h"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -177,7 +177,7 @@
},
{
"c"
:
"#"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -188,7 +188,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -199,7 +199,7 @@
},
{
"c"
:
"h"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -298,7 +298,7 @@
},
{
"c"
:
"#"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -309,7 +309,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -320,7 +320,7 @@
},
{
"c"
:
"h"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
extensions/markdown-basics/test/colorize-results/test_md.json
浏览文件 @
2cbe56f3
[
{
"c"
:
"#"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -12,7 +12,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -23,7 +23,7 @@
},
{
"c"
:
"Header 1"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.1.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -33,19 +33,8 @@
}
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
"dark_vs"
:
"markup.heading: #569CD6"
,
"light_vs"
:
"markup.heading: #800000"
,
"hc_black"
:
"markup.heading: #6796E6"
}
},
{
"c"
:
"#"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"c"
:
" #"
,
"t"
:
"text.html.markdown markup.heading.markdown heading.1.markdown punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -56,7 +45,7 @@
},
{
"c"
:
"##"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -67,7 +56,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -78,7 +67,7 @@
},
{
"c"
:
"Header 2"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -88,19 +77,8 @@
}
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
"dark_vs"
:
"markup.heading: #569CD6"
,
"light_vs"
:
"markup.heading: #800000"
,
"hc_black"
:
"markup.heading: #6796E6"
}
},
{
"c"
:
"##"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"c"
:
" ##"
,
"t"
:
"text.html.markdown markup.heading.markdown heading.2.markdown punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -111,7 +89,7 @@
},
{
"c"
:
"###"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.3.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -122,7 +100,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.3.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -133,7 +111,7 @@
},
{
"c"
:
"Header 3 ### (Hashes on right are optional)"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.3.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -144,7 +122,7 @@
},
{
"c"
:
"##"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -155,7 +133,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -166,7 +144,7 @@
},
{
"c"
:
"Markdown plus h2 with a custom ID ## {#id-goes-here}"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -243,7 +221,7 @@
},
{
"c"
:
"###"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.3.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -254,7 +232,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.3.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -265,7 +243,7 @@
},
{
"c"
:
"Alternate heading styles:"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.3.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2025,7 +2003,7 @@
},
{
"c"
:
"###"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.3.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2036,7 +2014,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.3.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2047,7 +2025,7 @@
},
{
"c"
:
"Horizontal rules"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.3.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2201,7 +2179,7 @@
},
{
"c"
:
"##"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2212,7 +2190,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2223,7 +2201,7 @@
},
{
"c"
:
"Markdown plus tables"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2233,19 +2211,8 @@
}
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
"dark_vs"
:
"markup.heading: #569CD6"
,
"light_vs"
:
"markup.heading: #800000"
,
"hc_black"
:
"markup.heading: #6796E6"
}
},
{
"c"
:
"##"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"c"
:
" ##"
,
"t"
:
"text.html.markdown markup.heading.markdown heading.2.markdown punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2366,7 +2333,7 @@
},
{
"c"
:
"##"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2377,7 +2344,7 @@
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2388,7 +2355,7 @@
},
{
"c"
:
"Markdown plus definition lists"
,
"t"
:
"text.html.markdown markup.heading.markdown entity.name.section.markdown"
,
"t"
:
"text.html.markdown markup.heading.markdown
heading.2.markdown
entity.name.section.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
@@ -2398,19 +2365,8 @@
}
},
{
"c"
:
" "
,
"t"
:
"text.html.markdown markup.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
"dark_vs"
:
"markup.heading: #569CD6"
,
"light_vs"
:
"markup.heading: #800000"
,
"hc_black"
:
"markup.heading: #6796E6"
}
},
{
"c"
:
"##"
,
"t"
:
"text.html.markdown markup.heading.markdown punctuation.definition.heading.markdown"
,
"c"
:
" ##"
,
"t"
:
"text.html.markdown markup.heading.markdown heading.2.markdown punctuation.definition.heading.markdown"
,
"r"
:
{
"dark_plus"
:
"markup.heading: #569CD6"
,
"light_plus"
:
"markup.heading: #800000"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录