Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
42a5c574
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,发现更多精彩内容 >>
提交
42a5c574
编写于
10月 10, 2016
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[xml] update grammar to atom/language-xml@f461d42 (2016-10-01). Fixes #13193.
上级
1548a3f4
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
531 addition
and
770 deletion
+531
-770
extensions/xml/OSSREADME.json
extensions/xml/OSSREADME.json
+5
-18
extensions/xml/package.json
extensions/xml/package.json
+5
-2
extensions/xml/syntaxes/XML.plist
extensions/xml/syntaxes/XML.plist
+0
-573
extensions/xml/syntaxes/XSL.plist
extensions/xml/syntaxes/XSL.plist
+0
-153
extensions/xml/syntaxes/xml.json
extensions/xml/syntaxes/xml.json
+426
-0
extensions/xml/syntaxes/xsl.json
extensions/xml/syntaxes/xsl.json
+93
-0
extensions/xml/test/colorize-results/test_xml.json
extensions/xml/test/colorize-results/test_xml.json
+2
-24
未找到文件。
extensions/xml/OSSREADME.json
浏览文件 @
42a5c574
//
ATTENTION
-
THIS
DIRECTORY
CONTAINS
THIRD
PARTY
OPEN
SOURCE
MATERIALS:
[{
"name"
:
"
textmate/xml.tmbundle
"
,
"name"
:
"
atom/language-xml
"
,
"version"
:
"0.0.0"
,
"license"
:
"TextMate Bundle License"
,
"repositoryURL"
:
"https://github.com/textmate/xml.tmbundle"
,
"licenseDetail"
:
[
"Copyright (c) textmate-xml.tmbundle project authors"
,
""
,
"If not otherwise specified (see below), files in this repository fall under the following license:"
,
""
,
"Permission to copy, use, modify, sell and distribute this"
,
"software is granted. This software is provided
\"
as is
\"
without"
,
"express or implied warranty, and with no claim as to its"
,
"suitability for any purpose."
,
""
,
"An exception is made for files in readable text which contain their own license information,"
,
"or files where an accompanying file exists (in the same directory) with a
\"
-license
\"
suffix added"
,
"to the base-name name of the original file, and an extension of txt, html, or similar. For example"
,
"
\"
tidy
\"
is accompanied by
\"
tidy-license.txt
\"
."
]
"license"
:
"MIT"
,
"repositoryURL"
:
"https://github.com/atom/language-xml"
,
"description"
:
"The files syntaxes/xml.json and syntaxes/xsl.json were derived from the Atom package https://github.com/atom/language-xml which were originally converted from the TextMate bundle https://github.com/textmate/xml.tmbundle."
}]
extensions/xml/package.json
浏览文件 @
42a5c574
...
...
@@ -77,11 +77,14 @@
"grammars"
:
[{
"language"
:
"xml"
,
"scopeName"
:
"text.xml"
,
"path"
:
"./syntaxes/
XML.plist
"
"path"
:
"./syntaxes/
xml.json
"
},
{
"language"
:
"xsl"
,
"scopeName"
:
"text.xml.xsl"
,
"path"
:
"./syntaxes/
XSL.plist
"
"path"
:
"./syntaxes/
xsl.json
"
}]
},
"scripts"
:
{
"update-grammar"
:
"node ../../build/npm/update-grammar.js atom/language-xml grammars/xml.cson ./syntaxes/xml.json grammars/xsl.cson ./syntaxes/xsl.json"
}
}
extensions/xml/syntaxes/XML.plist
已删除
100644 → 0
浏览文件 @
1548a3f4
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
fileTypes
</key>
<array>
<string>
xml
</string>
<string>
xsd
</string>
<string>
tld
</string>
<string>
jsp
</string>
<string>
pt
</string>
<string>
cpt
</string>
<string>
dtml
</string>
<string>
rss
</string>
<string>
opml
</string>
</array>
<key>
keyEquivalent
</key>
<string>
^~X
</string>
<key>
name
</key>
<string>
XML
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
begin
</key>
<string>
(
<
\?)\s*([-_\p{L}\d]+)
</string>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.tag.xml
</string>
</dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(\?
>
)
</string>
<key>
name
</key>
<string>
meta.tag.preprocessor.xml
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
match
</key>
<string>
([\p{L}-]+)
</string>
<key>
name
</key>
<string>
entity.other.attribute-name.xml
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#doublequotedString
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#singlequotedString
</string>
</dict>
</array>
</dict>
<dict>
<key>
begin
</key>
<string>
(
<
!)(DOCTYPE)\s+([:\p{L}_][:\p{L}\d_.-]*)
</string>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.tag.xml
</string>
</dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.other.doctype.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
variable.language.documentroot.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
\s*(
>
)
</string>
<key>
name
</key>
<string>
meta.tag.sgml.doctype.xml
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#internalSubset
</string>
</dict>
</array>
</dict>
<dict>
<key>
begin
</key>
<string>
<
[!%]--
</string>
<key>
captures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.comment.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
--%?
>
</string>
<key>
name
</key>
<string>
comment.block.xml
</string>
</dict>
<dict>
<key>
begin
</key>
<string>
(
<
)((?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+))(?=(\s[^
>
]*)?
><
/\2
>
)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.tag.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.namespace.xml
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.xml
</string>
</dict>
<key>
5
</key>
<dict>
<key>
name
</key>
<string>
punctuation.separator.namespace.xml
</string>
</dict>
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.localname.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(
>
(
<
))/(?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+)(
>
)
</string>
<key>
endCaptures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.tag.xml
</string>
</dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
meta.scope.between-tag-pair.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.namespace.xml
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.xml
</string>
</dict>
<key>
5
</key>
<dict>
<key>
name
</key>
<string>
punctuation.separator.namespace.xml
</string>
</dict>
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.localname.xml
</string>
</dict>
<key>
7
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.tag.xml
</string>
</dict>
</dict>
<key>
name
</key>
<string>
meta.tag.no-content.xml
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#tagStuff
</string>
</dict>
</array>
</dict>
<dict>
<key>
begin
</key>
<string>
(
<
/?)(?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+)
</string>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.tag.xml
</string>
</dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.namespace.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.xml
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
punctuation.separator.namespace.xml
</string>
</dict>
<key>
5
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.localname.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(/?
>
)
</string>
<key>
name
</key>
<string>
meta.tag.xml
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#tagStuff
</string>
</dict>
</array>
</dict>
<dict>
<key>
include
</key>
<string>
#entity
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#bare-ampersand
</string>
</dict>
<dict>
<key>
begin
</key>
<string>
<
%@
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.section.embedded.begin.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
%
>
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.section.embedded.end.xml
</string>
</dict>
</dict>
<key>
name
</key>
<string>
source.java-props.embedded.xml
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
match
</key>
<string>
page|include|taglib
</string>
<key>
name
</key>
<string>
keyword.other.page-props.xml
</string>
</dict>
</array>
</dict>
<dict>
<key>
begin
</key>
<string>
<
%[!=]?(?!--)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.section.embedded.begin.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(?!--)%
>
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.section.embedded.end.xml
</string>
</dict>
</dict>
<key>
name
</key>
<string>
source.java.embedded.xml
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
source.java
</string>
</dict>
</array>
</dict>
<dict>
<key>
begin
</key>
<string>
<
!\[CDATA\[
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
]]
>
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.xml
</string>
</dict>
</dict>
<key>
name
</key>
<string>
string.unquoted.cdata.xml
</string>
</dict>
</array>
<key>
repository
</key>
<dict>
<key>
EntityDecl
</key>
<dict>
<key>
begin
</key>
<string>
(
<
!)(ENTITY)\s+(%\s+)?([:\p{L}_][:\p{L}\d_.-]*)(\s+(?:SYSTEM|PUBLIC)\s+)?
</string>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.tag.xml
</string>
</dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
keyword.other.entity.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.entity.xml
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
variable.language.entity.xml
</string>
</dict>
<key>
5
</key>
<dict>
<key>
name
</key>
<string>
keyword.other.entitytype.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(
>
)
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#doublequotedString
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#singlequotedString
</string>
</dict>
</array>
</dict>
<key>
bare-ampersand
</key>
<dict>
<key>
match
</key>
<string>
&
</string>
<key>
name
</key>
<string>
invalid.illegal.bad-ampersand.xml
</string>
</dict>
<key>
doublequotedString
</key>
<dict>
<key>
begin
</key>
<string>
"
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
"
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.xml
</string>
</dict>
</dict>
<key>
name
</key>
<string>
string.quoted.double.xml
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#entity
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#bare-ampersand
</string>
</dict>
</array>
</dict>
<key>
entity
</key>
<dict>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.constant.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.constant.xml
</string>
</dict>
</dict>
<key>
match
</key>
<string>
(
&
)([:\p{L}_][:\p{L}\d_.-]*|#[\d]+|#x[\da-fA-F]+)(;)
</string>
<key>
name
</key>
<string>
constant.character.entity.xml
</string>
</dict>
<key>
internalSubset
</key>
<dict>
<key>
begin
</key>
<string>
(\[)
</string>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.constant.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(\])
</string>
<key>
name
</key>
<string>
meta.internalsubset.xml
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#EntityDecl
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#parameterEntity
</string>
</dict>
</array>
</dict>
<key>
parameterEntity
</key>
<dict>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.constant.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.constant.xml
</string>
</dict>
</dict>
<key>
match
</key>
<string>
(%)([:\p{L}_][:\p{L}\d_.-]*)(;)
</string>
<key>
name
</key>
<string>
constant.character.parameter-entity.xml
</string>
</dict>
<key>
singlequotedString
</key>
<dict>
<key>
begin
</key>
<string>
'
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
'
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.xml
</string>
</dict>
</dict>
<key>
name
</key>
<string>
string.quoted.single.xml
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#entity
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#bare-ampersand
</string>
</dict>
</array>
</dict>
<key>
tagStuff
</key>
<dict>
<key>
patterns
</key>
<array>
<dict>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
entity.other.attribute-name.namespace.xml
</string>
</dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
entity.other.attribute-name.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
punctuation.separator.namespace.xml
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
entity.other.attribute-name.localname.xml
</string>
</dict>
</dict>
<key>
match
</key>
<string>
(?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d]+)=
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#doublequotedString
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#singlequotedString
</string>
</dict>
</array>
</dict>
</dict>
<key>
scopeName
</key>
<string>
text.xml
</string>
<key>
uuid
</key>
<string>
D3C4E6DA-6B1C-11D9-8CC2-000D93589AF6
</string>
</dict>
</plist>
\ No newline at end of file
extensions/xml/syntaxes/XSL.plist
已删除
100644 → 0
浏览文件 @
1548a3f4
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
fileTypes
</key>
<array>
<string>
xsl
</string>
<string>
xslt
</string>
</array>
<key>
keyEquivalent
</key>
<string>
^~X
</string>
<key>
name
</key>
<string>
XSL
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
begin
</key>
<string>
(
<
)(xsl)((:))(template)
</string>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.tag.xml
</string>
</dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.namespace.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.xml
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
punctuation.separator.namespace.xml
</string>
</dict>
<key>
5
</key>
<dict>
<key>
name
</key>
<string>
entity.name.tag.localname.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(
>
)
</string>
<key>
name
</key>
<string>
meta.tag.xml.template
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
entity.other.attribute-name.namespace.xml
</string>
</dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
entity.other.attribute-name.xml
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
punctuation.separator.namespace.xml
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
entity.other.attribute-name.localname.xml
</string>
</dict>
</dict>
<key>
match
</key>
<string>
(?:([-_\p{L}\d]+)((:)))?([\p{L}-]+)
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#doublequotedString
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#singlequotedString
</string>
</dict>
</array>
</dict>
<dict>
<key>
include
</key>
<string>
text.xml
</string>
</dict>
</array>
<key>
repository
</key>
<dict>
<key>
doublequotedString
</key>
<dict>
<key>
begin
</key>
<string>
"
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
"
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.xml
</string>
</dict>
</dict>
<key>
name
</key>
<string>
string.quoted.double.xml
</string>
</dict>
<key>
singlequotedString
</key>
<dict>
<key>
begin
</key>
<string>
'
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.xml
</string>
</dict>
</dict>
<key>
end
</key>
<string>
'
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.xml
</string>
</dict>
</dict>
<key>
name
</key>
<string>
string.quoted.single.xml
</string>
</dict>
</dict>
<key>
scopeName
</key>
<string>
text.xml.xsl
</string>
<key>
uuid
</key>
<string>
DB8033A1-6D8E-4D80-B8A2-8768AAC6125D
</string>
</dict>
</plist>
\ No newline at end of file
extensions/xml/syntaxes/xml.json
0 → 100644
浏览文件 @
42a5c574
{
"scopeName"
:
"text.xml"
,
"name"
:
"XML"
,
"fileTypes"
:
[
"atom"
,
"axml"
,
"bpmn"
,
"config"
,
"cpt"
,
"csl"
,
"csproj"
,
"csproj.user"
,
"dae"
,
"dia"
,
"dita"
,
"ditamap"
,
"dtml"
,
"fodg"
,
"fodp"
,
"fods"
,
"fodt"
,
"fsproj"
,
"fxml"
,
"glade"
,
"gpx"
,
"graphml"
,
"icls"
,
"iml"
,
"isml"
,
"jmx"
,
"jsp"
,
"launch"
,
"menu"
,
"mxml"
,
"nuspec"
,
"opml"
,
"owl"
,
"pom"
,
"ppj"
,
"proj"
,
"pt"
,
"pubxml"
,
"pubxml.user"
,
"rdf"
,
"rng"
,
"rss"
,
"shproj"
,
"storyboard"
,
"svg"
,
"targets"
,
"tld"
,
"vbox"
,
"vbox-prev"
,
"vbproj"
,
"vbproj.user"
,
"vcproj"
,
"vcproj.filters"
,
"vcxproj"
,
"vcxproj.filters"
,
"wsdl"
,
"xaml"
,
"xbl"
,
"xib"
,
"xlf"
,
"xliff"
,
"xml"
,
"xpdl"
,
"xsd"
,
"xul"
,
"ui"
],
"patterns"
:
[
{
"begin"
:
"(<
\\
?)
\\
s*([-_a-zA-Z0-9]+)"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.tag.xml"
},
"2"
:
{
"name"
:
"entity.name.tag.xml"
}
},
"end"
:
"(
\\
?>)"
,
"name"
:
"meta.tag.preprocessor.xml"
,
"patterns"
:
[
{
"match"
:
" ([a-zA-Z-]+)"
,
"name"
:
"entity.other.attribute-name.xml"
},
{
"include"
:
"#doublequotedString"
},
{
"include"
:
"#singlequotedString"
}
]
},
{
"begin"
:
"(<!)(DOCTYPE)
\\
s+([:a-zA-Z_][:a-zA-Z0-9_.-]*)"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.tag.xml"
},
"2"
:
{
"name"
:
"keyword.other.doctype.xml"
},
"3"
:
{
"name"
:
"variable.language.documentroot.xml"
}
},
"end"
:
"
\\
s*(>)"
,
"name"
:
"meta.tag.sgml.doctype.xml"
,
"patterns"
:
[
{
"include"
:
"#internalSubset"
}
]
},
{
"include"
:
"#comments"
},
{
"begin"
:
"(<)((?:([-_a-zA-Z0-9]+)(:))?([-_a-zA-Z0-9:]+))(?=(
\\
s[^>]*)?></
\\
2>)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.tag.xml"
},
"2"
:
{
"name"
:
"entity.name.tag.xml"
},
"3"
:
{
"name"
:
"entity.name.tag.namespace.xml"
},
"4"
:
{
"name"
:
"punctuation.separator.namespace.xml"
},
"5"
:
{
"name"
:
"entity.name.tag.localname.xml"
}
},
"end"
:
"(>)(</)((?:([-_a-zA-Z0-9]+)(:))?([-_a-zA-Z0-9:]+))(>)"
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.tag.xml"
},
"2"
:
{
"name"
:
"punctuation.definition.tag.xml"
},
"3"
:
{
"name"
:
"entity.name.tag.xml"
},
"4"
:
{
"name"
:
"entity.name.tag.namespace.xml"
},
"5"
:
{
"name"
:
"punctuation.separator.namespace.xml"
},
"6"
:
{
"name"
:
"entity.name.tag.localname.xml"
},
"7"
:
{
"name"
:
"punctuation.definition.tag.xml"
}
},
"name"
:
"meta.tag.no-content.xml"
,
"patterns"
:
[
{
"include"
:
"#tagStuff"
}
]
},
{
"begin"
:
"(</?)(?:([-
\\
w
\\
.]+)((:)))?([-
\\
w
\\
.:]+)"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.tag.xml"
},
"2"
:
{
"name"
:
"entity.name.tag.namespace.xml"
},
"3"
:
{
"name"
:
"entity.name.tag.xml"
},
"4"
:
{
"name"
:
"punctuation.separator.namespace.xml"
},
"5"
:
{
"name"
:
"entity.name.tag.localname.xml"
}
},
"end"
:
"(/?>)"
,
"name"
:
"meta.tag.xml"
,
"patterns"
:
[
{
"include"
:
"#tagStuff"
}
]
},
{
"include"
:
"#entity"
},
{
"include"
:
"#bare-ampersand"
},
{
"begin"
:
"<%@"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.embedded.begin.xml"
}
},
"end"
:
"%>"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.embedded.end.xml"
}
},
"name"
:
"source.java-props.embedded.xml"
,
"patterns"
:
[
{
"match"
:
"page|include|taglib"
,
"name"
:
"keyword.other.page-props.xml"
}
]
},
{
"begin"
:
"<%[!=]?(?!--)"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.embedded.begin.xml"
}
},
"end"
:
"(?!--)%>"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.embedded.end.xml"
}
},
"name"
:
"source.java.embedded.xml"
,
"patterns"
:
[
{
"include"
:
"source.java"
}
]
},
{
"begin"
:
"<!
\\
[CDATA
\\
["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.xml"
}
},
"end"
:
"]]>"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.xml"
}
},
"name"
:
"string.unquoted.cdata.xml"
}
],
"repository"
:
{
"EntityDecl"
:
{
"begin"
:
"(<!)(ENTITY)
\\
s+(%
\\
s+)?([:a-zA-Z_][:a-zA-Z0-9_.-]*)(
\\
s+(?:SYSTEM|PUBLIC)
\\
s+)?"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.tag.xml"
},
"2"
:
{
"name"
:
"keyword.other.entity.xml"
},
"3"
:
{
"name"
:
"punctuation.definition.entity.xml"
},
"4"
:
{
"name"
:
"variable.language.entity.xml"
},
"5"
:
{
"name"
:
"keyword.other.entitytype.xml"
}
},
"end"
:
"(>)"
,
"patterns"
:
[
{
"include"
:
"#doublequotedString"
},
{
"include"
:
"#singlequotedString"
}
]
},
"bare-ampersand"
:
{
"match"
:
"&"
,
"name"
:
"invalid.illegal.bad-ampersand.xml"
},
"doublequotedString"
:
{
"begin"
:
"
\"
"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.xml"
}
},
"end"
:
"
\"
"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.xml"
}
},
"name"
:
"string.quoted.double.xml"
,
"patterns"
:
[
{
"include"
:
"#entity"
},
{
"include"
:
"#bare-ampersand"
}
]
},
"entity"
:
{
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.constant.xml"
},
"3"
:
{
"name"
:
"punctuation.definition.constant.xml"
}
},
"match"
:
"(&)([:a-zA-Z_][:a-zA-Z0-9_.-]*|#[0-9]+|#x[0-9a-fA-F]+)(;)"
,
"name"
:
"constant.character.entity.xml"
},
"internalSubset"
:
{
"begin"
:
"(
\\
[)"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.constant.xml"
}
},
"end"
:
"(
\\
])"
,
"name"
:
"meta.internalsubset.xml"
,
"patterns"
:
[
{
"include"
:
"#EntityDecl"
},
{
"include"
:
"#parameterEntity"
},
{
"include"
:
"#comments"
}
]
},
"parameterEntity"
:
{
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.constant.xml"
},
"3"
:
{
"name"
:
"punctuation.definition.constant.xml"
}
},
"match"
:
"(%)([:a-zA-Z_][:a-zA-Z0-9_.-]*)(;)"
,
"name"
:
"constant.character.parameter-entity.xml"
},
"singlequotedString"
:
{
"begin"
:
"'"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.xml"
}
},
"end"
:
"'"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.xml"
}
},
"name"
:
"string.quoted.single.xml"
,
"patterns"
:
[
{
"include"
:
"#entity"
},
{
"include"
:
"#bare-ampersand"
}
]
},
"tagStuff"
:
{
"patterns"
:
[
{
"captures"
:
{
"1"
:
{
"name"
:
"entity.other.attribute-name.namespace.xml"
},
"2"
:
{
"name"
:
"entity.other.attribute-name.xml"
},
"3"
:
{
"name"
:
"punctuation.separator.namespace.xml"
},
"4"
:
{
"name"
:
"entity.other.attribute-name.localname.xml"
}
},
"match"
:
"(?:^|
\\
s+)(?:([-
\\
w.]+)((:)))?([-
\\
w.:]+)="
},
{
"include"
:
"#doublequotedString"
},
{
"include"
:
"#singlequotedString"
}
]
},
"comments"
:
{
"begin"
:
"<[!%]--"
,
"captures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.comment.xml"
}
},
"end"
:
"--%?>"
,
"name"
:
"comment.block.xml"
}
},
"version"
:
"https://github.com/atom/language-xml/commit/f461d428fb87040cb8a52d87d0b95151b9d3c0cc"
}
\ No newline at end of file
extensions/xml/syntaxes/xsl.json
0 → 100644
浏览文件 @
42a5c574
{
"scopeName"
:
"text.xml.xsl"
,
"name"
:
"XSL"
,
"fileTypes"
:
[
"xsl"
,
"xslt"
],
"patterns"
:
[
{
"begin"
:
"(<)(xsl)((:))(template)"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.tag.xml"
},
"2"
:
{
"name"
:
"entity.name.tag.namespace.xml"
},
"3"
:
{
"name"
:
"entity.name.tag.xml"
},
"4"
:
{
"name"
:
"punctuation.separator.namespace.xml"
},
"5"
:
{
"name"
:
"entity.name.tag.localname.xml"
}
},
"end"
:
"(>)"
,
"name"
:
"meta.tag.xml.template"
,
"patterns"
:
[
{
"captures"
:
{
"1"
:
{
"name"
:
"entity.other.attribute-name.namespace.xml"
},
"2"
:
{
"name"
:
"entity.other.attribute-name.xml"
},
"3"
:
{
"name"
:
"punctuation.separator.namespace.xml"
},
"4"
:
{
"name"
:
"entity.other.attribute-name.localname.xml"
}
},
"match"
:
" (?:([-_a-zA-Z0-9]+)((:)))?([a-zA-Z-]+)"
},
{
"include"
:
"#doublequotedString"
},
{
"include"
:
"#singlequotedString"
}
]
},
{
"include"
:
"text.xml"
}
],
"repository"
:
{
"doublequotedString"
:
{
"begin"
:
"
\"
"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.xml"
}
},
"end"
:
"
\"
"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.xml"
}
},
"name"
:
"string.quoted.double.xml"
},
"singlequotedString"
:
{
"begin"
:
"'"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.xml"
}
},
"end"
:
"'"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.xml"
}
},
"name"
:
"string.quoted.single.xml"
}
},
"version"
:
"https://github.com/atom/language-xml/commit/507de2ee7daca60cf02e9e21fbeb92bbae73e280"
}
\ No newline at end of file
extensions/xml/test/colorize-results/test_xml.json
浏览文件 @
42a5c574
...
...
@@ -1353,7 +1353,7 @@
}
},
{
"c"
:
"VisualState"
,
"c"
:
"VisualState
.Setters
"
,
"t"
:
"entity.localname.meta.name.tag.xml"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.name.tag rgb(86, 156, 214)"
,
...
...
@@ -1363,17 +1363,6 @@
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.entity.name.tag rgb(86, 156, 214)"
}
},
{
"c"
:
".Setters"
,
"t"
:
"meta.tag.xml"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.meta.tag rgb(128, 128, 128)"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.meta.tag rgb(128, 0, 0)"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.meta.tag rgb(128, 128, 128)"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.meta.tag rgb(128, 0, 0)"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.meta.tag rgb(128, 128, 128)"
}
},
{
"c"
:
">"
,
"t"
:
"definition.meta.punctuation.tag.xml"
,
...
...
@@ -1760,7 +1749,7 @@
}
},
{
"c"
:
"VisualState"
,
"c"
:
"VisualState
.Setters
"
,
"t"
:
"entity.localname.meta.name.tag.xml"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.name.tag rgb(86, 156, 214)"
,
...
...
@@ -1770,17 +1759,6 @@
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.entity.name.tag rgb(86, 156, 214)"
}
},
{
"c"
:
".Setters"
,
"t"
:
"meta.tag.xml"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.meta.tag rgb(128, 128, 128)"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.meta.tag rgb(128, 0, 0)"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.meta.tag rgb(128, 128, 128)"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.meta.tag rgb(128, 0, 0)"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.meta.tag rgb(128, 128, 128)"
}
},
{
"c"
:
">"
,
"t"
:
"definition.meta.punctuation.tag.xml"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录