Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
4163a8dc
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,发现更多精彩内容 >>
提交
4163a8dc
编写于
11月 24, 2015
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[json] add tm grammer, not yet enabled
上级
f84a9013
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
305 addition
and
0 deletion
+305
-0
extensions/json/OSSREADME.json
extensions/json/OSSREADME.json
+22
-0
extensions/json/package.json
extensions/json/package.json
+19
-0
extensions/json/syntaxes/JSON.tmLanguage
extensions/json/syntaxes/JSON.tmLanguage
+264
-0
未找到文件。
extensions/json/OSSREADME.json
0 → 100644
浏览文件 @
4163a8dc
//
ATTENTION
-
THIS
DIRECTORY
CONTAINS
THIRD
PARTY
OPEN
SOURCE
MATERIALS:
[{
"name"
:
"textmate/json.tmbundle"
,
"version"
:
"0.0.0"
,
"license"
:
"TextMate Bundle License"
,
"repositoryURL"
:
"https://github.com/textmate/json.tmbundle"
,
"licenseDetail"
:
[
"Copyright (c) textmate-json.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
\"
."
]
}]
extensions/json/package.json
0 → 100644
浏览文件 @
4163a8dc
{
"name"
:
"json"
,
"version"
:
"0.1.0"
,
"publisher"
:
"vscode"
,
"engines"
:
{
"vscode"
:
"*"
},
"contributes"
:
{
"languages"
:
[{
"id"
:
"json"
,
"aliases"
:
[
"JSON"
,
"json"
],
"extensions"
:
[
".json"
,
".bowerrc"
,
".jshintrc"
,
".jscsrc"
,
".eslintrc"
],
"mimetypes"
:
[
"application/json"
]
}],
"grammars"
:
[{
//
"language"
:
"json"
:
commented
out
for
now
,
will
add
once
we
have
rule
for
comments
"scopeName"
:
"source.json"
,
"path"
:
"./syntaxes/JSON.tmLanguage"
}]
}
}
\ No newline at end of file
extensions/json/syntaxes/JSON.tmLanguage
0 → 100644
浏览文件 @
4163a8dc
<?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>
json
</string>
</array>
<key>
keyEquivalent
</key>
<string>
^~J
</string>
<key>
name
</key>
<string>
JSON
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#value
</string>
</dict>
</array>
<key>
repository
</key>
<dict>
<key>
array
</key>
<dict>
<key>
begin
</key>
<string>
\[
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.array.begin.json
</string>
</dict>
</dict>
<key>
end
</key>
<string>
\]
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.array.end.json
</string>
</dict>
</dict>
<key>
name
</key>
<string>
meta.structure.array.json
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#value
</string>
</dict>
<dict>
<key>
match
</key>
<string>
,
</string>
<key>
name
</key>
<string>
punctuation.separator.array.json
</string>
</dict>
<dict>
<key>
match
</key>
<string>
[^\s\]]
</string>
<key>
name
</key>
<string>
invalid.illegal.expected-array-separator.json
</string>
</dict>
</array>
</dict>
<key>
constant
</key>
<dict>
<key>
match
</key>
<string>
\b(?:true|false|null)\b
</string>
<key>
name
</key>
<string>
constant.language.json
</string>
</dict>
<key>
number
</key>
<dict>
<key>
comment
</key>
<string>
handles integer and decimal numbers
</string>
<key>
match
</key>
<string>
(?x: # turn on extended mode
-? # an optional minus
(?:
0 # a zero
| # ...or...
[1-9] # a 1-9 character
\d* # followed by zero or more digits
)
(?:
(?:
\. # a period
\d+ # followed by one or more digits
)?
(?:
[eE] # an e character
[+-]? # followed by an option +/-
\d+ # followed by one or more digits
)? # make exponent optional
)? # make decimal portion optional
)
</string>
<key>
name
</key>
<string>
constant.numeric.json
</string>
</dict>
<key>
object
</key>
<dict>
<key>
begin
</key>
<string>
\{
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.dictionary.begin.json
</string>
</dict>
</dict>
<key>
comment
</key>
<string>
a JSON object
</string>
<key>
end
</key>
<string>
\}
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.dictionary.end.json
</string>
</dict>
</dict>
<key>
name
</key>
<string>
meta.structure.dictionary.json
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
comment
</key>
<string>
the JSON object key
</string>
<key>
include
</key>
<string>
#string
</string>
</dict>
<dict>
<key>
begin
</key>
<string>
:
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.separator.dictionary.key-value.json
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(,)|(?=\})
</string>
<key>
endCaptures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.separator.dictionary.pair.json
</string>
</dict>
</dict>
<key>
name
</key>
<string>
meta.structure.dictionary.value.json
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
comment
</key>
<string>
the JSON object value
</string>
<key>
include
</key>
<string>
#value
</string>
</dict>
<dict>
<key>
match
</key>
<string>
[^\s,]
</string>
<key>
name
</key>
<string>
invalid.illegal.expected-dictionary-separator.json
</string>
</dict>
</array>
</dict>
<dict>
<key>
match
</key>
<string>
[^\s\}]
</string>
<key>
name
</key>
<string>
invalid.illegal.expected-dictionary-separator.json
</string>
</dict>
</array>
</dict>
<key>
string
</key>
<dict>
<key>
begin
</key>
<string>
"
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.json
</string>
</dict>
</dict>
<key>
end
</key>
<string>
"
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.json
</string>
</dict>
</dict>
<key>
name
</key>
<string>
string.quoted.double.json
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
match
</key>
<string>
(?x: # turn on extended mode
\\ # a literal backslash
(?: # ...followed by...
["\\/bfnrt] # one of these characters
| # ...or...
u # a u
[0-9a-fA-F]{4} # and four hex digits
)
)
</string>
<key>
name
</key>
<string>
constant.character.escape.json
</string>
</dict>
<dict>
<key>
match
</key>
<string>
\\.
</string>
<key>
name
</key>
<string>
invalid.illegal.unrecognized-string-escape.json
</string>
</dict>
</array>
</dict>
<key>
value
</key>
<dict>
<key>
comment
</key>
<string>
the 'value' diagram at http://json.org
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
#constant
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#number
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#string
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#array
</string>
</dict>
<dict>
<key>
include
</key>
<string>
#object
</string>
</dict>
</array>
</dict>
</dict>
<key>
scopeName
</key>
<string>
source.json
</string>
<key>
uuid
</key>
<string>
0C3868E4-F96B-4E55-B204-1DCB5A20748B
</string>
</dict>
</plist>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录