Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
cc8df730
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,发现更多精彩内容 >>
提交
cc8df730
编写于
1月 30, 2017
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace jade with pug. Fixes #18219
上级
c01ba26f
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
40 addition
and
18 deletion
+40
-18
extensions/javascript/src/features/packageJSONContribution.ts
...nsions/javascript/src/features/packageJSONContribution.ts
+1
-1
extensions/pug/OSSREADME.json
extensions/pug/OSSREADME.json
+0
-0
extensions/pug/language-configuration.json
extensions/pug/language-configuration.json
+0
-0
extensions/pug/package.json
extensions/pug/package.json
+4
-4
extensions/pug/syntaxes/pug.tmLanguage.json
extensions/pug/syntaxes/pug.tmLanguage.json
+35
-13
extensions/pug/test/colorize-fixtures/test-4287.pug
extensions/pug/test/colorize-fixtures/test-4287.pug
+0
-0
extensions/pug/test/colorize-fixtures/test.pug
extensions/pug/test/colorize-fixtures/test.pug
+0
-0
extensions/pug/test/colorize-results/test-4287_pug.json
extensions/pug/test/colorize-results/test-4287_pug.json
+0
-0
extensions/pug/test/colorize-results/test_pug.json
extensions/pug/test/colorize-results/test_pug.json
+0
-0
未找到文件。
extensions/javascript/src/features/packageJSONContribution.ts
浏览文件 @
cc8df730
...
...
@@ -18,7 +18,7 @@ let LIMIT = 40;
export
class
PackageJSONContribution
implements
IJSONContribution
{
private
mostDependedOn
=
[
'
lodash
'
,
'
async
'
,
'
underscore
'
,
'
request
'
,
'
commander
'
,
'
express
'
,
'
debug
'
,
'
chalk
'
,
'
colors
'
,
'
q
'
,
'
coffee-script
'
,
'
mkdirp
'
,
'
optimist
'
,
'
through2
'
,
'
yeoman-generator
'
,
'
moment
'
,
'
bluebird
'
,
'
glob
'
,
'
gulp-util
'
,
'
minimist
'
,
'
cheerio
'
,
'
jade
'
,
'
redis
'
,
'
node-uuid
'
,
'
mkdirp
'
,
'
optimist
'
,
'
through2
'
,
'
yeoman-generator
'
,
'
moment
'
,
'
bluebird
'
,
'
glob
'
,
'
gulp-util
'
,
'
minimist
'
,
'
cheerio
'
,
'
pug
'
,
'
redis
'
,
'
node-uuid
'
,
'
socket
'
,
'
io
'
,
'
uglify-js
'
,
'
winston
'
,
'
through
'
,
'
fs-extra
'
,
'
handlebars
'
,
'
body-parser
'
,
'
rimraf
'
,
'
mime
'
,
'
semver
'
,
'
mongodb
'
,
'
jquery
'
,
'
grunt
'
,
'
connect
'
,
'
yosay
'
,
'
underscore
'
,
'
string
'
,
'
xml2js
'
,
'
ejs
'
,
'
mongoose
'
,
'
marked
'
,
'
extend
'
,
'
mocha
'
,
'
superagent
'
,
'
js-yaml
'
,
'
xtend
'
,
'
shelljs
'
,
'
gulp
'
,
'
yargs
'
,
'
browserify
'
,
'
minimatch
'
,
'
react
'
,
'
less
'
,
'
prompt
'
,
'
inquirer
'
,
'
ws
'
,
'
event-stream
'
,
'
inherits
'
,
'
mysql
'
,
'
esprima
'
,
...
...
extensions/
jade
/OSSREADME.json
→
extensions/
pug
/OSSREADME.json
浏览文件 @
cc8df730
文件已移动
extensions/
jade
/language-configuration.json
→
extensions/
pug
/language-configuration.json
浏览文件 @
cc8df730
文件已移动
extensions/
jade
/package.json
→
extensions/
pug
/package.json
浏览文件 @
cc8df730
{
"name"
:
"
jade
"
,
"name"
:
"
pug
"
,
"version"
:
"0.1.0"
,
"publisher"
:
"vscode"
,
"engines"
:
{
"vscode"
:
"*"
},
"scripts"
:
{
"update-grammar"
:
"node ../../build/npm/update-grammar.js davidrios/jade-tmbundle Syntaxes/Jade.tmLanguage ./syntaxes/
Jad
e.json"
"update-grammar"
:
"node ../../build/npm/update-grammar.js davidrios/jade-tmbundle Syntaxes/Jade.tmLanguage ./syntaxes/
pug.tmLanguag
e.json"
},
"contributes"
:
{
"languages"
:
[{
"id"
:
"jade"
,
"extensions"
:
[
".jade"
,
".pug"
],
"aliases"
:
[
"Jade"
,
"jade"
],
"aliases"
:
[
"
Pug"
,
"
Jade"
,
"jade"
],
"configuration"
:
"./language-configuration.json"
}],
"grammars"
:
[{
"language"
:
"jade"
,
"scopeName"
:
"text.jade"
,
"path"
:
"./syntaxes/
Jad
e.json"
"path"
:
"./syntaxes/
pug.tmLanguag
e.json"
}]
}
}
\ No newline at end of file
extensions/
jade/syntaxes/Jad
e.json
→
extensions/
pug/syntaxes/pug.tmLanguag
e.json
浏览文件 @
cc8df730
...
...
@@ -33,6 +33,17 @@
}
]
},
{
"begin"
:
"<!--"
,
"end"
:
"--
\\
s*>"
,
"name"
:
"comment.unbuffered.block.jade"
,
"patterns"
:
[
{
"match"
:
"--"
,
"name"
:
"invalid.illegal.comment.comment.block.jade"
}
]
},
{
"begin"
:
"^(
\\
s*)-$"
,
"comment"
:
"Unbuffered code block."
,
...
...
@@ -45,10 +56,10 @@
]
},
{
"begin"
:
"^(
\\
s*)(script)(
?=[.#(
\\
s])((?![^
\\
n]*type=)|(?=[^
\\
n]*(text|application)/javascript
))"
,
"begin"
:
"^(
\\
s*)(script)(
(
\\
.$)|(?=[^
\\
n]*(text|application)/javascript.*
\\
.$
))"
,
"beginCaptures"
:
{
"2"
:
{
"name"
:
"entity.name.tag.
script.
jade"
"name"
:
"entity.name.tag.jade"
}
},
"comment"
:
"Script tag with JavaScript code."
,
...
...
@@ -58,7 +69,6 @@
{
"begin"
:
"
\\
G(?=
\\
()"
,
"end"
:
"$"
,
"name"
:
"stuff.tag.script.jade"
,
"patterns"
:
[
{
"include"
:
"#tag_attributes"
...
...
@@ -68,7 +78,6 @@
{
"begin"
:
"
\\
G(?=[.#])"
,
"end"
:
"$"
,
"name"
:
"stuff.tag.script.jade"
,
"patterns"
:
[
{
"include"
:
"#complete_tag"
...
...
@@ -84,7 +93,7 @@
"begin"
:
"^(
\\
s*)(style)((
\\
.$)|(?=[.#(].*
\\
.$))"
,
"beginCaptures"
:
{
"2"
:
{
"name"
:
"entity.name.tag.
script.
jade"
"name"
:
"entity.name.tag.jade"
}
},
"comment"
:
"Style tag with CSS code."
,
...
...
@@ -94,7 +103,6 @@
{
"begin"
:
"
\\
G(?=
\\
()"
,
"end"
:
"$"
,
"name"
:
"stuff.tag.style.jade"
,
"patterns"
:
[
{
"include"
:
"#tag_attributes"
...
...
@@ -104,7 +112,6 @@
{
"begin"
:
"
\\
G(?=[.#])"
,
"end"
:
"$"
,
"name"
:
"stuff.tag.style.jade"
,
"patterns"
:
[
{
"include"
:
"#complete_tag"
...
...
@@ -225,10 +232,10 @@
"begin"
:
"^(
\\
s*)(?=[
\\
w.#].*?
\\
.$)(?=(?:(?:(?:(?:(?:#[
\\
w-]+)|(?:
\\
.[
\\
w-]+))|(?:(?:[#!]
\\
{[^}]*
\\
})|(?:
\\
w(?:(?:[
\\
w:-]+[
\\
w-])|(?:[
\\
w-]*)))))(?:(?:#[
\\
w-]+)|(?:
\\
.[
\\
w-]+)|(?:
\\
((?:[^()
\\
'
\\\"
]*(?:(?:
\\
'(?:[^
\\
']|(?:(?<!
\\\\
)
\\\\\\
'))*
\\
')|(?:
\\\"
(?:[^
\\\"
]|(?:(?<!
\\\\
)
\\\\\\\"
))*
\\\"
)))*[^()]*
\\
))*)*)(?:(?:(?::
\\
s+)|(?<=
\\
)))(?:(?:(?:(?:#[
\\
w-]+)|(?:
\\
.[
\\
w-]+))|(?:(?:[#!]
\\
{[^}]*
\\
})|(?:
\\
w(?:(?:[
\\
w:-]+[
\\
w-])|(?:[
\\
w-]*)))))(?:(?:#[
\\
w-]+)|(?:
\\
.[
\\
w-]+)|(?:
\\
((?:[^()
\\
'
\\\"
]*(?:(?:
\\
'(?:[^
\\
']|(?:(?<!
\\\\
)
\\\\\\
'))*
\\
')|(?:
\\\"
(?:[^
\\\"
]|(?:(?<!
\\\\
)
\\\\\\\"
))*
\\\"
)))*[^()]*
\\
))*)*))*)
\\
.$)(?:(?:(#[
\\
w-]+)|(
\\
.[
\\
w-]+))|((?:[#!]
\\
{[^}]*
\\
})|(?:
\\
w(?:(?:[
\\
w:-]+[
\\
w-])|(?:[
\\
w-]*)))))"
,
"beginCaptures"
:
{
"2"
:
{
"name"
:
"
constant.id.tag
.jade"
"name"
:
"
entity.other.attribute-name.id
.jade"
},
"3"
:
{
"name"
:
"
constant.language.js
"
"name"
:
"
entity.other.attribute-name.class.jade
"
},
"4"
:
{
"name"
:
"meta.tag.other entity.name.tag.jade"
...
...
@@ -363,6 +370,18 @@
}
],
"repository"
:
{
"babel_parens"
:
{
"begin"
:
"
\\
("
,
"end"
:
"
\\
)|(({
\\
s*)?$)"
,
"patterns"
:
[
{
"include"
:
"#babel_parens"
},
{
"include"
:
"source.js"
}
]
},
"blocks_and_includes"
:
{
"captures"
:
{
"1"
:
{
...
...
@@ -871,11 +890,11 @@
}
},
"match"
:
"
\\
.([^
\\
w-])?[
\\
w-]*"
,
"name"
:
"
constant.language.js
"
"name"
:
"
entity.other.attribute-name.class.jade
"
},
"tag_id"
:
{
"match"
:
"#[
\\
w-]+"
,
"name"
:
"
constant.id.tag
.jade"
"name"
:
"
entity.other.attribute-name.id
.jade"
},
"tag_mixin_attributes"
:
{
"begin"
:
"(&attributes
\\
()"
,
...
...
@@ -946,12 +965,15 @@
}
},
"comment"
:
"name = function() {}"
,
"end"
:
"(?=
\\
])|
$
"
,
"end"
:
"(?=
\\
])|
(({
\\
s*)?$)
"
,
"name"
:
"source.js"
,
"patterns"
:
[
{
"include"
:
"#js_brackets"
},
{
"include"
:
"#babel_parens"
},
{
"include"
:
"source.js"
}
...
...
@@ -960,5 +982,5 @@
},
"scopeName"
:
"text.jade"
,
"uuid"
:
"eee6ba25-6ac2-4f7e-9c70-cddf2bd3448b"
,
"version"
:
"https://github.com/davidrios/jade-tmbundle/commit/
7c1304aa5a0d916a93fd296d3dd994219ecdc90f
"
"version"
:
"https://github.com/davidrios/jade-tmbundle/commit/
f311a516bb29296fcebfdc7da8149b1c79dfb0a1
"
}
\ No newline at end of file
extensions/
jade/test/colorize-fixtures/test-4287.jade
→
extensions/
pug/test/colorize-fixtures/test-4287.pug
浏览文件 @
cc8df730
文件已移动
extensions/
jade/test/colorize-fixtures/test.jade
→
extensions/
pug/test/colorize-fixtures/test.pug
浏览文件 @
cc8df730
文件已移动
extensions/
jade/test/colorize-results/test-4287_jade
.json
→
extensions/
pug/test/colorize-results/test-4287_pug
.json
浏览文件 @
cc8df730
文件已移动
extensions/
jade/test/colorize-results/test_jade
.json
→
extensions/
pug/test/colorize-results/test_pug
.json
浏览文件 @
cc8df730
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录