Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
c3713673
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,发现更多精彩内容 >>
提交
c3713673
编写于
11月 25, 2015
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[json] 'JSON with comments' text mate bundle
上级
7754743a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
124 addition
and
58 deletion
+124
-58
extensions/json/OSSREADME.json
extensions/json/OSSREADME.json
+3
-18
extensions/json/package.json
extensions/json/package.json
+1
-1
extensions/json/syntaxes/JSON.tmLanguage
extensions/json/syntaxes/JSON.tmLanguage
+120
-39
未找到文件。
extensions/json/OSSREADME.json
浏览文件 @
c3713673
//
ATTENTION
-
THIS
DIRECTORY
CONTAINS
THIRD
PARTY
OPEN
SOURCE
MATERIALS:
//
ATTENTION
-
THIS
DIRECTORY
CONTAINS
THIRD
PARTY
OPEN
SOURCE
MATERIALS:
[{
[{
"name"
:
"
textmate/json.tmbundl
e"
,
"name"
:
"
Benvie/JavaScriptNext.tmLanguag
e"
,
"version"
:
"0.0.0"
,
"version"
:
"0.0.0"
,
"license"
:
"TextMate Bundle License"
,
"license"
:
"MIT"
,
"repositoryURL"
:
"https://github.com/textmate/json.tmbundle"
,
"repositoryURL"
:
"https://github.com/Benvie/JavaScriptNext.tmLanguage"
"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
浏览文件 @
c3713673
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"mimetypes"
:
[
"application/json"
]
"mimetypes"
:
[
"application/json"
]
}],
}],
"grammars"
:
[{
"grammars"
:
[{
//
"language"
:
"json"
:
commented
out
for
now
,
will
add
once
we
have
rule
for
comments
//
"language"
:
"json"
:
commented
out
for
now
"scopeName"
:
"source.json"
,
"scopeName"
:
"source.json"
,
"path"
:
"./syntaxes/JSON.tmLanguage"
"path"
:
"./syntaxes/JSON.tmLanguage"
}]
}]
...
...
extensions/json/syntaxes/JSON.tmLanguage
浏览文件 @
c3713673
<?xml version="1.0" encoding="UTF-8"?>
<?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">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<plist
version=
"1.0"
>
<dict>
<dict>
<key>
fileTypes
</key>
<key>
fileTypes
</key>
<array>
<array>
<string>
json
</string>
<string>
json
</string>
<string>
sublime-settings
</string>
<string>
sublime-menu
</string>
<string>
sublime-keymap
</string>
<string>
sublime-mousemap
</string>
<string>
sublime-theme
</string>
<string>
sublime-build
</string>
<string>
sublime-project
</string>
<string>
sublime-completions
</string>
</array>
</array>
<key>
foldingStartMarker
</key>
<string>
(?x) # turn on extended mode
^ # a line beginning with
\s* # some optional space
[{\[] # the start of an object or array
(?! # but not followed by
.* # whatever
[}\]] # and the close of an object or array
,? # an optional comma
\s* # some optional space
$ # at the end of the line
)
| # ...or...
[{\[] # the start of an object or array
\s* # some optional space
$ # at the end of the line
</string>
<key>
foldingStopMarker
</key>
<string>
(?x) # turn on extended mode
^ # a line beginning with
\s* # some optional space
[}\]] # and the close of an object or array
</string>
<key>
keyEquivalent
</key>
<key>
keyEquivalent
</key>
<string>
^~J
</string>
<string>
^~J
</string>
<key>
name
</key>
<key>
name
</key>
<string>
JSON
</string>
<string>
JSON
(Javascript Next)
</string>
<key>
patterns
</key>
<key>
patterns
</key>
<array>
<array>
<dict>
<dict>
...
@@ -63,6 +92,58 @@
...
@@ -63,6 +92,58 @@
</dict>
</dict>
</array>
</array>
</dict>
</dict>
<key>
comments
</key>
<dict>
<key>
patterns
</key>
<array>
<dict>
<key>
begin
</key>
<string>
/\*\*
</string>
<key>
captures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.comment.json
</string>
</dict>
</dict>
<key>
end
</key>
<string>
\*/
</string>
<key>
name
</key>
<string>
comment.block.documentation.json
</string>
</dict>
<dict>
<key>
begin
</key>
<string>
/\*
</string>
<key>
captures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.comment.json
</string>
</dict>
</dict>
<key>
end
</key>
<string>
\*/
</string>
<key>
name
</key>
<string>
comment.block.json
</string>
</dict>
<dict>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.comment.json
</string>
</dict>
</dict>
<key>
match
</key>
<string>
(//).*$\n?
</string>
<key>
name
</key>
<string>
comment.line.double-slash.js
</string>
</dict>
</array>
</dict>
<key>
constant
</key>
<key>
constant
</key>
<dict>
<dict>
<key>
match
</key>
<key>
match
</key>
...
@@ -72,29 +153,26 @@
...
@@ -72,29 +153,26 @@
</dict>
</dict>
<key>
number
</key>
<key>
number
</key>
<dict>
<dict>
<key>
comment
</key>
<string>
handles integer and decimal numbers
</string>
<key>
match
</key>
<key>
match
</key>
<string>
(?x: # turn on extended mode
<string>
(?x) # turn on extended mode
-? # an optional minus
-? # an optional minus
(?:
(?:
0 # a zero
0 # a zero
| # ...or...
| # ...or...
[1-9] # a 1-9 character
[1-9] # a 1-9 character
\d* # followed by zero or more digits
\d* # followed by zero or more digits
)
)
(?:
(?:
(?:
(?:
\. # a period
\. # a period
\d+ # followed by one or more digits
\d+ # followed by one or more digits
)?
)?
(?:
(?:
[eE] # an e character
[eE] # an e character
[+-]? # followed by an option +/-
[+-]? # followed by an option +/-
\d+ # followed by one or more digits
\d+ # followed by one or more digits
)? # make exponent optional
)? # make exponent optional
)? # make decimal portion optional
)? # make decimal portion optional
</string>
)
</string>
<key>
name
</key>
<key>
name
</key>
<string>
constant.numeric.json
</string>
<string>
constant.numeric.json
</string>
</dict>
</dict>
...
@@ -110,8 +188,6 @@
...
@@ -110,8 +188,6 @@
<string>
punctuation.definition.dictionary.begin.json
</string>
<string>
punctuation.definition.dictionary.begin.json
</string>
</dict>
</dict>
</dict>
</dict>
<key>
comment
</key>
<string>
a JSON object
</string>
<key>
end
</key>
<key>
end
</key>
<string>
\}
</string>
<string>
\}
</string>
<key>
endCaptures
</key>
<key>
endCaptures
</key>
...
@@ -132,6 +208,10 @@
...
@@ -132,6 +208,10 @@
<key>
include
</key>
<key>
include
</key>
<string>
#string
</string>
<string>
#string
</string>
</dict>
</dict>
<dict>
<key>
include
</key>
<string>
#comments
</string>
</dict>
<dict>
<dict>
<key>
begin
</key>
<key>
begin
</key>
<string>
:
</string>
<string>
:
</string>
...
@@ -207,15 +287,13 @@
...
@@ -207,15 +287,13 @@
<array>
<array>
<dict>
<dict>
<key>
match
</key>
<key>
match
</key>
<string>
(?x: # turn on extended mode
<string>
(?x) # turn on extended mode
\\ # a literal backslash
\\ # a literal backslash
(?: # ...followed by...
(?: # ...followed by...
["\\/bfnrt] # one of these characters
["\\/bfnrt] # one of these characters
| # ...or...
| # ...or...
u # a u
u # a u
[0-9a-fA-F]{4} # and four hex digits
[0-9a-fA-F]{4}) # and four hex digits
</string>
)
)
</string>
<key>
name
</key>
<key>
name
</key>
<string>
constant.character.escape.json
</string>
<string>
constant.character.escape.json
</string>
</dict>
</dict>
...
@@ -229,8 +307,6 @@
...
@@ -229,8 +307,6 @@
</dict>
</dict>
<key>
value
</key>
<key>
value
</key>
<dict>
<dict>
<key>
comment
</key>
<string>
the 'value' diagram at http://json.org
</string>
<key>
patterns
</key>
<key>
patterns
</key>
<array>
<array>
<dict>
<dict>
...
@@ -253,12 +329,17 @@
...
@@ -253,12 +329,17 @@
<key>
include
</key>
<key>
include
</key>
<string>
#object
</string>
<string>
#object
</string>
</dict>
</dict>
<dict>
<key>
include
</key>
<string>
#comments
</string>
</dict>
</array>
</array>
</dict>
</dict>
</dict>
</dict>
<key>
scopeName
</key>
<key>
scopeName
</key>
<string>
source.json
</string>
<string>
source.json
</string>
<key>
uuid
</key>
<key>
uuid
</key>
<string>
0C3868E4-F96B-4E55-B204-1DCB5A20748B
</string>
<string>
8f97457b-516e-48ce-83c7-08ae12fb327a
</string>
</dict>
</dict>
</plist>
</plist>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录