Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
f06a42a8
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,发现更多精彩内容 >>
提交
f06a42a8
编写于
11月 14, 2017
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bat] use grammar from mmims/language-batchfile. Fixes #38206, fixes #3845
上级
eb73e069
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
939 addition
and
71 deletion
+939
-71
build/npm/update-all-grammars.js
build/npm/update-all-grammars.js
+1
-1
extensions/bat/OSSREADME.json
extensions/bat/OSSREADME.json
+3
-18
extensions/bat/package.json
extensions/bat/package.json
+5
-2
extensions/bat/syntaxes/batchfile.tmLanguage.json
extensions/bat/syntaxes/batchfile.tmLanguage.json
+693
-0
extensions/bat/test/colorize-results/test_bat.json
extensions/bat/test/colorize-results/test_bat.json
+234
-47
scripts/test-integration.sh
scripts/test-integration.sh
+3
-3
未找到文件。
build/npm/update-all-grammars.js
浏览文件 @
f06a42a8
...
@@ -18,7 +18,7 @@ function updateGrammar(location) {
...
@@ -18,7 +18,7 @@ function updateGrammar(location) {
}
}
const
extensions
=
[
const
extensions
=
[
// 'bat' Grammar no longer available
'
bat
'
,
'
clojure
'
,
'
clojure
'
,
'
coffeescript
'
,
'
coffeescript
'
,
'
cpp
'
,
'
cpp
'
,
...
...
extensions/bat/OSSREADME.json
浏览文件 @
f06a42a8
//
ATTENTION
-
THIS
DIRECTORY
CONTAINS
THIRD
PARTY
OPEN
SOURCE
MATERIALS:
//
ATTENTION
-
THIS
DIRECTORY
CONTAINS
THIRD
PARTY
OPEN
SOURCE
MATERIALS:
[{
[{
"name"
:
"
sublimehq/Packages
"
,
"name"
:
"
mmims/language-batchfile
"
,
"version"
:
"0.0.0"
,
"version"
:
"0.0.0"
,
"license"
:
"TextMate Bundle License"
,
"license"
:
"MIT"
,
"repositoryURL"
:
"https://github.com/sublimehq/Packages"
,
"repositoryURL"
:
"https://github.com/mmims/language-batchfile"
"licenseDetail"
:
[
"Copyright (c) Sublime Packages project authors"
,
""
,
"If not otherwise specified (see below), files in this folder 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/bat/package.json
浏览文件 @
f06a42a8
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
"version"
:
"0.1.0"
,
"version"
:
"0.1.0"
,
"publisher"
:
"vscode"
,
"publisher"
:
"vscode"
,
"engines"
:
{
"vscode"
:
"*"
},
"engines"
:
{
"vscode"
:
"*"
},
"scripts"
:
{
"update-grammar"
:
"node ../../build/npm/update-grammar.js mmims/language-batchfile grammars/batchfile.cson ./syntaxes/batchfile.tmLanguage.json"
},
"contributes"
:
{
"contributes"
:
{
"languages"
:
[{
"languages"
:
[{
"id"
:
"bat"
,
"id"
:
"bat"
,
...
@@ -12,8 +15,8 @@
...
@@ -12,8 +15,8 @@
}],
}],
"grammars"
:
[{
"grammars"
:
[{
"language"
:
"bat"
,
"language"
:
"bat"
,
"scopeName"
:
"source.
dosbatch
"
,
"scopeName"
:
"source.
batchfile
"
,
"path"
:
"./syntaxes/
Batch File.tmLanguage
"
"path"
:
"./syntaxes/
batchfile.tmLanguage.json
"
}]
}]
}
}
}
}
\ No newline at end of file
extensions/bat/syntaxes/batchfile.tmLanguage.json
0 → 100644
浏览文件 @
f06a42a8
{
"information_for_contributors"
:
[
"This file has been converted from https://github.com/mmims/language-batchfile/blob/master/grammars/batchfile.cson"
,
"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/mmims/language-batchfile/commit/40b605c75db3967a24b7015f6d3a885360b84e28"
,
"scopeName"
:
"source.batchfile"
,
"name"
:
"Batch File"
,
"fileTypes"
:
[
"bat"
,
"cmd"
],
"patterns"
:
[
{
"include"
:
"#commands"
},
{
"include"
:
"#comments"
},
{
"include"
:
"#constants"
},
{
"include"
:
"#controls"
},
{
"include"
:
"#escaped_characters"
},
{
"include"
:
"#labels"
},
{
"include"
:
"#numbers"
},
{
"include"
:
"#operators"
},
{
"include"
:
"#parens"
},
{
"include"
:
"#strings"
},
{
"include"
:
"#variables"
}
],
"repository"
:
{
"commands"
:
{
"patterns"
:
[
{
"match"
:
"(?<=^|[
\\
s@])(?i:adprep|append|arp|assoc|at|atmadm|attrib|auditpol|autochk|autoconv|autofmt|bcdboot|bcdedit|bdehdcfg|bitsadmin|bootcfg|brea|cacls|cd|certreq|certutil|change|chcp|chdir|chglogon|chgport|chgusr|chkdsk|chkntfs|choice|cipher|clip|clscluadmin|cluster|cmd|cmdkey|cmstp|color|comp|compact|convert|copy|cprofile|cscript|csvde|date|dcdiag|dcgpofix|dcpromo|defra|del|dfscmd|dfsdiag|dfsrmig|diantz|dir|dirquota|diskcomp|diskcopy|diskpart|diskperf|diskraid|diskshadow|dispdiag|doin|dnscmd|doskey|driverquery|dsacls|dsadd|dsamain|dsdbutil|dsget|dsmgmt|dsmod|dsmove|dsquery|dsrm|edit|endlocal|eraseesentutl|eventcreate|eventquery|eventtriggers|evntcmd|expand|extract|fc|filescrn|find|findstr|finger|flattemp|fonde|forfiles|format|freedisk|fsutil|ftp|ftype|fveupdate|getmac|gettype|gpfixup|gpresult|gpupdate|graftabl|hashgen|hep|helpctr|hostname|icacls|iisreset|inuse|ipconfig|ipxroute|irftp|ismserv|jetpack|klist|ksetup|ktmutil|ktpass|label|ldifd|ldp|lodctr|logman|logoff|lpq|lpr|macfile|makecab|manage-bde|mapadmin|md|mkdir|mklink|mmc|mode|more|mount|mountvol|move|mqbup|mqsvc|mqtgsvc|msdt|msg|msiexec|msinfo32|mstsc|nbtstat|net computer|net group|net localgroup|net print|net session|net share|net start|net stop|net use|net user|net view|net|netcfg|netdiag|netdom|netsh|netstat|nfsadmin|nfsshare|nfsstat|nlb|nlbmgr|nltest|nslookup|ntackup|ntcmdprompt|ntdsutil|ntfrsutl|openfiles|pagefileconfig|path|pathping|pause|pbadmin|pentnt|perfmon|ping|pnpunatten|pnputil|popd|powercfg|powershell|powershell_ise|print|prncnfg|prndrvr|prnjobs|prnmngr|prnport|prnqctl|prompt|pubprn|pushd|pushprinterconnections|pwlauncher|qappsrv|qprocess|query|quser|qwinsta|rasdial|rcp|rd|rdpsign|regentc|recover|redircmp|redirusr|reg|regini|regsvr32|relog|ren|rename|rendom|repadmin|repair-bde|replace|reset session|rxec|risetup|rmdir|robocopy|route|rpcinfo|rpcping|rsh|runas|rundll32|rwinsta|sc|schtasks|scwcmd|secedit|serverceipoptin|servrmanagercmd|serverweroptin|setlocal|setspn|setx|sfc|shadow|shift|showmount|shutdown|sort|start|storrept|subst|sxstrace|ysocmgr|systeminfo|takeown|tapicfg|taskkill|tasklist|tcmsetup|telnet|tftp|time|timeout|title|tlntadmn|tpmvscmgr|tpmvscmgr|tacerpt|tracert|tree|tscon|tsdiscon|tsecimp|tskill|tsprof|type|typeperf|tzutil|uddiconfig|umount|unlodctr|ver|verifier|verif|vol|vssadmin|w32tm|waitfor|wbadmin|wdsutil|wecutil|wevtutil|where|whoami|winnt|winnt32|winpop|winrm|winrs|winsat|wlbs|mic|wscript|xcopy)(?=$|
\\
s)"
,
"name"
:
"keyword.command.batchfile"
},
{
"begin"
:
"(?<=^|[
\\
s@])(?i:echo)(?=$|
\\
s|
\\
.)"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"keyword.command.batchfile"
}
},
"end"
:
"(?=$
\\
n|[&|><)])"
,
"patterns"
:
[
{
"include"
:
"#escaped_characters"
},
{
"include"
:
"#variables"
},
{
"include"
:
"#numbers"
},
{
"include"
:
"#strings"
}
]
},
{
"include"
:
"#command_set"
}
]
},
"command_set"
:
{
"patterns"
:
[
{
"begin"
:
"(?<=^|[
\\
s@])(?i:SET)(?=$|
\\
s)"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"keyword.command.batchfile"
}
},
"end"
:
"(?=$
\\
n|[&|><)])"
,
"patterns"
:
[
{
"include"
:
"#command_set_inside"
}
]
}
]
},
"command_set_inside"
:
{
"patterns"
:
[
{
"include"
:
"#escaped_characters"
},
{
"include"
:
"#variables"
},
{
"include"
:
"#numbers"
},
{
"include"
:
"#parens"
},
{
"begin"
:
"(
\"
)
\\
s*([^ ][^=]*)(=)
\"
?"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.string.begin.batchfile"
},
"2"
:
{
"name"
:
"variable.other.readwrite.batchfile"
},
"3"
:
{
"name"
:
"keyword.operator.assignment.batchfile"
}
},
"end"
:
"
\"
"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"string.quoted.double.batchfile"
}
},
"patterns"
:
[
{
"include"
:
"#variables"
},
{
"include"
:
"#numbers"
},
{
"include"
:
"#parens"
}
]
},
{
"include"
:
"#strings"
},
{
"begin"
:
"([^ ][^=]*)(=)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"variable.other.readwrite.batchfile"
},
"2"
:
{
"name"
:
"keyword.operator.assignment.batchfile"
}
},
"end"
:
"(?=$
\\
n|[&|><)])"
,
"patterns"
:
[
{
"include"
:
"#escaped_characters"
},
{
"include"
:
"#variables"
},
{
"include"
:
"#numbers"
},
{
"include"
:
"#parens"
},
{
"include"
:
"#strings"
}
]
},
{
"begin"
:
"
\\
s+/[aA]
\\
s+"
,
"end"
:
"(?=$
\\
n|[&|><)])"
,
"name"
:
"meta.expression.set.batchfile"
,
"patterns"
:
[
{
"include"
:
"#command_set_inside_arithmetic"
},
{
"include"
:
"#command_set_group"
},
{
"begin"
:
"
\"
"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.batchfile"
}
},
"end"
:
"
\"
"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.batchfile"
}
},
"name"
:
"string.quoted.double.batchfile"
,
"patterns"
:
[
{
"include"
:
"#command_set_inside_arithmetic"
},
{
"include"
:
"#command_set_group"
},
{
"include"
:
"#variables"
}
]
}
]
},
{
"begin"
:
"
\\
s+/[pP]
\\
s+"
,
"end"
:
"(?=$
\\
n|[&|><)])"
,
"patterns"
:
[
{
"begin"
:
"([^ ][^=]*)(=)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"variable.other.readwrite.batchfile"
},
"2"
:
{
"name"
:
"keyword.operator.assignment.batchfile"
}
},
"end"
:
"(?=$
\\
n|[&|><)])"
,
"name"
:
"meta.prompt.set.batchfile"
,
"patterns"
:
[
{
"include"
:
"#strings"
}
]
}
]
}
]
},
"command_set_group"
:
{
"patterns"
:
[
{
"begin"
:
"
\\
("
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.group.begin.batchfile"
}
},
"end"
:
"
\\
)"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.group.end.batchfile"
}
},
"patterns"
:
[
{
"include"
:
"#command_set_inside_arithmetic"
}
]
}
]
},
"command_set_inside_arithmetic"
:
{
"patterns"
:
[
{
"include"
:
"#command_set_operators"
},
{
"include"
:
"#numbers"
},
{
"match"
:
","
,
"name"
:
"punctuation.separator.batchfile"
}
]
},
"command_set_operators"
:
{
"patterns"
:
[
{
"match"
:
"
\\
+
\\
=|
\\
-
\\
=|
\\
*
\\
=|/
\\
=|%%
\\
=|&
\\
=|
\\
|
\\
=|
\\
^
\\
=|<<
\\
=|>>
\\
="
,
"name"
:
"keyword.operator.assignment.augmented.batchfile"
},
{
"match"
:
"
\\
+|
\\
-|/|
\\
*|%%|
\\
||&|
\\
^|<<|>>|~"
,
"name"
:
"keyword.operator.arithmetic.batchfile"
},
{
"match"
:
"!"
,
"name"
:
"keyword.operator.logical.batchfile"
},
{
"match"
:
"="
,
"name"
:
"keyword.operator.assignment.batchfile"
}
]
},
"comments"
:
{
"patterns"
:
[
{
"begin"
:
"(?:^|(&))
\\
s*(?=((?::[+=,;: ])))"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.operator.conditional.batchfile"
}
},
"end"
:
"
\\
n"
,
"patterns"
:
[
{
"begin"
:
"((?::[+=,;: ]))"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.comment.batchfile"
}
},
"end"
:
"(?=
\\
n)"
,
"name"
:
"comment.line.colon.batchfile"
}
]
},
{
"begin"
:
"(?<=^|[
\\
s@])(?i)(REM)(
\\
.)"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.command.rem.batchfile"
},
"2"
:
{
"name"
:
"punctuation.separator.batchfile"
}
},
"end"
:
"(?=$
\\
n|[&|><)])"
,
"name"
:
"comment.line.rem.batchfile"
},
{
"begin"
:
"(?<=^|[
\\
s@])(?i:rem)
\\
b"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"keyword.command.rem.batchfile"
}
},
"end"
:
"
\\
n"
,
"name"
:
"comment.line.rem.batchfile"
,
"patterns"
:
[
{
"match"
:
"[><|]"
,
"name"
:
"invalid.illegal.unexpected-character.batchfile"
}
]
}
]
},
"constants"
:
{
"patterns"
:
[
{
"match"
:
"
\\
b(?i:NUL)
\\
b"
,
"name"
:
"constant.language.batchfile"
}
]
},
"controls"
:
{
"patterns"
:
[
{
"match"
:
"(?<=^|
\\
s)(?i)(?:goto|call|exit)(?=$|
\\
s)"
,
"name"
:
"keyword.control.statement.batchfile"
},
{
"match"
:
"(?<=^|
\\
s)(?i)(if)
\\
s+(?:(not)
\\
s+)?(exist|defined|errorlevel|cmdextversion)(?=
\\
s)"
,
"captures"
:
{
"1"
:
{
"name"
:
"keyword.control.conditional.batchfile"
},
"2"
:
{
"name"
:
"keyword.operator.logical.batchfile"
},
"3"
:
{
"name"
:
"keyword.other.special-method.batchfile"
}
}
},
{
"match"
:
"(?<=^|
\\
s)(?i)(?:if|else)(?=$|
\\
s)"
,
"name"
:
"keyword.control.conditional.batchfile"
},
{
"match"
:
"(?<=^|
\\
s)(?i)for(?=
\\
s)"
,
"name"
:
"keyword.control.repeat.batchfile"
}
]
},
"escaped_characters"
:
{
"patterns"
:
[
{
"match"
:
"%%|
\\
^
\\
^!|
\\
^.|
\\
^
\\
n"
,
"name"
:
"constant.character.escape.batchfile"
}
]
},
"labels"
:
{
"patterns"
:
[
{
"match"
:
"^
\\
s*(:)([^+=,;:
\\
s].*)$"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.separator.batchfile"
},
"2"
:
{
"name"
:
"keyword.other.special-method.batchfile"
}
}
}
]
},
"numbers"
:
{
"patterns"
:
[
{
"match"
:
"(?<=^|
\\
s|=)(0[xX][0-9A-Fa-f]*|[+-]?
\\
d+)(?=$|
\\
s|<|>)"
,
"name"
:
"constant.numeric.batchfile"
}
]
},
"operators"
:
{
"patterns"
:
[
{
"match"
:
"@(?=
\\
S)"
,
"name"
:
"keyword.operator.at.batchfile"
},
{
"match"
:
"(?<=
\\
s)(?i:EQU|NEQ|LSS|LEQ|GTR|GEQ)(?=
\\
s)|=="
,
"name"
:
"keyword.operator.comparison.batchfile"
},
{
"match"
:
"(?<=
\\
s)(?i)(NOT)(?=
\\
s)"
,
"name"
:
"keyword.operator.logical.batchfile"
},
{
"match"
:
"&&?|
\\
|
\\
|"
,
"name"
:
"keyword.operator.conditional.batchfile"
},
{
"match"
:
"
\\
|"
,
"name"
:
"keyword.operator.pipe.batchfile"
},
{
"match"
:
"<&?|>[&>]?"
,
"name"
:
"keyword.operator.redirection.batchfile"
}
]
},
"parens"
:
{
"patterns"
:
[
{
"begin"
:
"
\\
("
,
"beginCaptures"
:
{
"0"
:
"punctuation.section.group.begin.batchfile"
},
"end"
:
"
\\
)"
,
"endCaptures"
:
{
"0"
:
"punctuation.section.group.end.batchfile"
},
"name"
:
"meta.group.batchfile"
,
"patterns"
:
[
{
"match"
:
",|;"
,
"name"
:
"punctuation.separator.batchfile"
},
{
"include"
:
"$self"
}
]
}
]
},
"strings"
:
{
"patterns"
:
[
{
"begin"
:
"
\"
"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.batchfile"
}
},
"end"
:
"(
\"
)|(
\\
n)"
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.string.end.batchfile"
},
"2"
:
{
"name"
:
"invalid.illegal.newline.batchfile"
}
},
"name"
:
"string.quoted.double.batchfile"
,
"patterns"
:
[
{
"include"
:
"#variables"
}
]
}
]
},
"variables"
:
{
"patterns"
:
[
{
"match"
:
"(%)((~([fdpnxsatz]|
\\
$PATH:)*)?
\\
d|
\\
*)"
,
"captures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.variable.batchfile"
}
},
"name"
:
"variable.parameter.batchfile"
},
{
"include"
:
"#variable"
},
{
"include"
:
"#variable_delayed_expansion"
}
]
},
"variable"
:
{
"patterns"
:
[
{
"begin"
:
"%(?=[^%]+%)"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.variable.begin.batchfile"
}
},
"end"
:
"(%)|
\\
n"
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.variable.end.batchfile"
}
},
"name"
:
"variable.other.readwrite.batchfile"
,
"patterns"
:
[
{
"begin"
:
":~"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.separator.batchfile"
}
},
"end"
:
"(?=%|
\\
n)"
,
"name"
:
"meta.variable.substring.batchfile"
,
"patterns"
:
[
{
"include"
:
"#variable_substring"
}
]
},
{
"begin"
:
":"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.separator.batchfile"
}
},
"end"
:
"(?=%|
\\
n)"
,
"name"
:
"meta.variable.substitution.batchfile"
,
"patterns"
:
[
{
"include"
:
"#variable_replace"
},
{
"begin"
:
"="
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.separator.batchfile"
}
},
"end"
:
"(?=%|
\\
n)"
,
"patterns"
:
[
{
"include"
:
"#variable_delayed_expansion"
},
{
"match"
:
"[^%]+"
,
"name"
:
"string.unquoted.batchfile"
}
]
}
]
}
]
}
]
},
"variable_delayed_expansion"
:
{
"patterns"
:
[
{
"begin"
:
"!(?=[^!]+!)"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.variable.begin.batchfile"
}
},
"end"
:
"(!)|
\\
n"
,
"endCaptures"
:
{
"1"
:
{
"name"
:
"punctuation.definition.variable.end.batchfile"
}
},
"name"
:
"variable.other.readwrite.batchfile"
,
"patterns"
:
[
{
"begin"
:
":~"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.separator.batchfile"
}
},
"end"
:
"(?=!|
\\
n)"
,
"name"
:
"meta.variable.substring.batchfile"
,
"patterns"
:
[
{
"include"
:
"#variable_substring"
}
]
},
{
"begin"
:
":"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.separator.batchfile"
}
},
"end"
:
"(?=!|
\\
n)"
,
"name"
:
"meta.variable.substitution.batchfile"
,
"patterns"
:
[
{
"include"
:
"#escaped_characters"
},
{
"include"
:
"#variable_replace"
},
{
"include"
:
"#variable"
},
{
"begin"
:
"="
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.separator.batchfile"
}
},
"end"
:
"(?=!|
\\
n)"
,
"patterns"
:
[
{
"include"
:
"#variable"
},
{
"match"
:
"[^!]+"
,
"name"
:
"string.unquoted.batchfile"
}
]
}
]
}
]
}
]
},
"variable_replace"
:
{
"patterns"
:
[
{
"match"
:
"[^=%!
\\
n]+"
,
"name"
:
"string.unquoted.batchfile"
}
]
},
"variable_substring"
:
{
"patterns"
:
[
{
"match"
:
"([+-]?
\\
d+)(?:(,)([+-]?
\\
d+))?"
,
"captures"
:
{
"1"
:
{
"name"
:
"constant.numeric.batchfile"
},
"2"
:
{
"name"
:
"punctuation.separator.batchfile"
},
"3"
:
{
"name"
:
"constant.numeric.batchfile"
}
}
}
]
}
}
}
\ No newline at end of file
extensions/bat/test/colorize-results/test_bat.json
浏览文件 @
f06a42a8
[
[
{
{
"c"
:
"@"
,
"c"
:
"@"
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile keyword.operator.at.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"
default
: #D4D4D4"
,
"dark_plus"
:
"
keyword.operator
: #D4D4D4"
,
"light_plus"
:
"
default
: #000000"
,
"light_plus"
:
"
keyword.operator
: #000000"
,
"dark_vs"
:
"
default
: #D4D4D4"
,
"dark_vs"
:
"
keyword.operator
: #D4D4D4"
,
"light_vs"
:
"
default
: #000000"
,
"light_vs"
:
"
keyword.operator
: #000000"
,
"hc_black"
:
"
default: #FFFFFF
"
"hc_black"
:
"
keyword.operator: #D4D4D4
"
}
}
},
},
{
{
"c"
:
"echo"
,
"c"
:
"echo"
,
"t"
:
"source.
dosbatch keyword.command.dosbatch
"
,
"t"
:
"source.
batchfile keyword.command.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"light_plus"
:
"keyword: #0000FF"
,
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
},
},
{
{
"c"
:
" off"
,
"c"
:
" off"
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
},
},
{
{
"c"
:
"setlocal"
,
"c"
:
"setlocal"
,
"t"
:
"source.
dosbatch keyword.command.dosbatch
"
,
"t"
:
"source.
batchfile keyword.command.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"light_plus"
:
"keyword: #0000FF"
,
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
},
},
{
{
"c"
:
"title"
,
"c"
:
"title"
,
"t"
:
"source.
dosbatch keyword.command.dosbatch
"
,
"t"
:
"source.
batchfile keyword.command.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"light_plus"
:
"keyword: #0000FF"
,
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
},
},
{
{
"c"
:
" VSCode Dev"
,
"c"
:
" VSCode Dev"
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
},
},
{
{
"c"
:
"pushd"
,
"c"
:
"pushd"
,
"t"
:
"source.
dosbatch keyword.command.dosbatch
"
,
"t"
:
"source.
batchfile keyword.command.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"light_plus"
:
"keyword: #0000FF"
,
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
},
},
{
{
"c"
:
" "
,
"c"
:
" "
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
},
},
{
{
"c"
:
"%"
,
"c"
:
"%"
,
"t"
:
"source.
dosbatch variable.parameter.function.dosbatch variable.parameter.function.begin.shell
"
,
"t"
:
"source.
batchfile variable.parameter.batchfile punctuation.definition.variable.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"variable: #9CDCFE"
,
"dark_plus"
:
"variable: #9CDCFE"
,
"light_plus"
:
"variable: #001080"
,
"light_plus"
:
"variable: #001080"
,
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
},
},
{
{
"c"
:
"~dp0"
,
"c"
:
"~dp0"
,
"t"
:
"source.
dosbatch variable.parameter.function.dosbatch
"
,
"t"
:
"source.
batchfile variable.parameter.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"variable: #9CDCFE"
,
"dark_plus"
:
"variable: #9CDCFE"
,
"light_plus"
:
"variable: #001080"
,
"light_plus"
:
"variable: #001080"
,
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
},
},
{
{
"c"
:
"
\\
.."
,
"c"
:
"
\\
.."
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -121,8 +121,8 @@
...
@@ -121,8 +121,8 @@
}
}
},
},
{
{
"c"
:
"::
Node modules
"
,
"c"
:
"::"
,
"t"
:
"source.
dosbatch comment.line.colons.dosbatch
"
,
"t"
:
"source.
batchfile comment.line.colon.batchfile punctuation.definition.comment.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"comment: #608B4E"
,
"dark_plus"
:
"comment: #608B4E"
,
"light_plus"
:
"comment: #008000"
,
"light_plus"
:
"comment: #008000"
,
...
@@ -132,8 +132,19 @@
...
@@ -132,8 +132,19 @@
}
}
},
},
{
{
"c"
:
"if not exist"
,
"c"
:
" Node modules"
,
"t"
:
"source.dosbatch keyword.control.conditional.if.dosbatch"
,
"t"
:
"source.batchfile comment.line.colon.batchfile"
,
"r"
:
{
"dark_plus"
:
"comment: #608B4E"
,
"light_plus"
:
"comment: #008000"
,
"dark_vs"
:
"comment: #608B4E"
,
"light_vs"
:
"comment: #008000"
,
"hc_black"
:
"comment: #7CA668"
}
},
{
"c"
:
"if"
,
"t"
:
"source.batchfile keyword.control.conditional.batchfile"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword.control: #C586C0"
,
"dark_plus"
:
"keyword.control: #C586C0"
,
"light_plus"
:
"keyword.control: #AF00DB"
,
"light_plus"
:
"keyword.control: #AF00DB"
,
...
@@ -142,9 +153,53 @@
...
@@ -142,9 +153,53 @@
"hc_black"
:
"keyword.control: #C586C0"
"hc_black"
:
"keyword.control: #C586C0"
}
}
},
},
{
"c"
:
" "
,
"t"
:
"source.batchfile"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"dark_vs"
:
"default: #D4D4D4"
,
"light_vs"
:
"default: #000000"
,
"hc_black"
:
"default: #FFFFFF"
}
},
{
"c"
:
"not"
,
"t"
:
"source.batchfile keyword.operator.logical.batchfile"
,
"r"
:
{
"dark_plus"
:
"keyword.operator: #D4D4D4"
,
"light_plus"
:
"keyword.operator: #000000"
,
"dark_vs"
:
"keyword.operator: #D4D4D4"
,
"light_vs"
:
"keyword.operator: #000000"
,
"hc_black"
:
"keyword.operator: #D4D4D4"
}
},
{
"c"
:
" "
,
"t"
:
"source.batchfile"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"dark_vs"
:
"default: #D4D4D4"
,
"light_vs"
:
"default: #000000"
,
"hc_black"
:
"default: #FFFFFF"
}
},
{
"c"
:
"exist"
,
"t"
:
"source.batchfile keyword.other.special-method.batchfile"
,
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"dark_vs"
:
"keyword: #569CD6"
,
"light_vs"
:
"keyword: #0000FF"
,
"hc_black"
:
"keyword: #569CD6"
}
},
{
{
"c"
:
" node_modules "
,
"c"
:
" node_modules "
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -155,7 +210,7 @@
...
@@ -155,7 +210,7 @@
},
},
{
{
"c"
:
"call"
,
"c"
:
"call"
,
"t"
:
"source.
dosbatch keyword.control.statement.dosbatch
"
,
"t"
:
"source.
batchfile keyword.control.statement.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword.control: #C586C0"
,
"dark_plus"
:
"keyword.control: #C586C0"
,
"light_plus"
:
"keyword.control: #AF00DB"
,
"light_plus"
:
"keyword.control: #AF00DB"
,
...
@@ -166,7 +221,7 @@
...
@@ -166,7 +221,7 @@
},
},
{
{
"c"
:
" .
\\
scripts
\\
npm.bat install"
,
"c"
:
" .
\\
scripts
\\
npm.bat install"
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -176,8 +231,19 @@
...
@@ -176,8 +231,19 @@
}
}
},
},
{
{
"c"
:
":: Get electron"
,
"c"
:
"::"
,
"t"
:
"source.dosbatch comment.line.colons.dosbatch"
,
"t"
:
"source.batchfile comment.line.colon.batchfile punctuation.definition.comment.batchfile"
,
"r"
:
{
"dark_plus"
:
"comment: #608B4E"
,
"light_plus"
:
"comment: #008000"
,
"dark_vs"
:
"comment: #608B4E"
,
"light_vs"
:
"comment: #008000"
,
"hc_black"
:
"comment: #7CA668"
}
},
{
"c"
:
" Get electron"
,
"t"
:
"source.batchfile comment.line.colon.batchfile"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"comment: #608B4E"
,
"dark_plus"
:
"comment: #608B4E"
,
"light_plus"
:
"comment: #008000"
,
"light_plus"
:
"comment: #008000"
,
...
@@ -188,7 +254,7 @@
...
@@ -188,7 +254,7 @@
},
},
{
{
"c"
:
"node .
\\
node_modules
\\
gulp
\\
bin
\\
gulp.js electron"
,
"c"
:
"node .
\\
node_modules
\\
gulp
\\
bin
\\
gulp.js electron"
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -198,8 +264,8 @@
...
@@ -198,8 +264,8 @@
}
}
},
},
{
{
"c"
:
"::
Build
"
,
"c"
:
"::"
,
"t"
:
"source.
dosbatch comment.line.colons.dosbatch
"
,
"t"
:
"source.
batchfile comment.line.colon.batchfile punctuation.definition.comment.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"comment: #608B4E"
,
"dark_plus"
:
"comment: #608B4E"
,
"light_plus"
:
"comment: #008000"
,
"light_plus"
:
"comment: #008000"
,
...
@@ -209,8 +275,19 @@
...
@@ -209,8 +275,19 @@
}
}
},
},
{
{
"c"
:
"if not exist"
,
"c"
:
" Build"
,
"t"
:
"source.dosbatch keyword.control.conditional.if.dosbatch"
,
"t"
:
"source.batchfile comment.line.colon.batchfile"
,
"r"
:
{
"dark_plus"
:
"comment: #608B4E"
,
"light_plus"
:
"comment: #008000"
,
"dark_vs"
:
"comment: #608B4E"
,
"light_vs"
:
"comment: #008000"
,
"hc_black"
:
"comment: #7CA668"
}
},
{
"c"
:
"if"
,
"t"
:
"source.batchfile keyword.control.conditional.batchfile"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword.control: #C586C0"
,
"dark_plus"
:
"keyword.control: #C586C0"
,
"light_plus"
:
"keyword.control: #AF00DB"
,
"light_plus"
:
"keyword.control: #AF00DB"
,
...
@@ -219,9 +296,53 @@
...
@@ -219,9 +296,53 @@
"hc_black"
:
"keyword.control: #C586C0"
"hc_black"
:
"keyword.control: #C586C0"
}
}
},
},
{
"c"
:
" "
,
"t"
:
"source.batchfile"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"dark_vs"
:
"default: #D4D4D4"
,
"light_vs"
:
"default: #000000"
,
"hc_black"
:
"default: #FFFFFF"
}
},
{
"c"
:
"not"
,
"t"
:
"source.batchfile keyword.operator.logical.batchfile"
,
"r"
:
{
"dark_plus"
:
"keyword.operator: #D4D4D4"
,
"light_plus"
:
"keyword.operator: #000000"
,
"dark_vs"
:
"keyword.operator: #D4D4D4"
,
"light_vs"
:
"keyword.operator: #000000"
,
"hc_black"
:
"keyword.operator: #D4D4D4"
}
},
{
"c"
:
" "
,
"t"
:
"source.batchfile"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"dark_vs"
:
"default: #D4D4D4"
,
"light_vs"
:
"default: #000000"
,
"hc_black"
:
"default: #FFFFFF"
}
},
{
"c"
:
"exist"
,
"t"
:
"source.batchfile keyword.other.special-method.batchfile"
,
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"dark_vs"
:
"keyword: #569CD6"
,
"light_vs"
:
"keyword: #0000FF"
,
"hc_black"
:
"keyword: #569CD6"
}
},
{
{
"c"
:
" out node .
\\
node_modules
\\
gulp
\\
bin
\\
gulp.js compile"
,
"c"
:
" out node .
\\
node_modules
\\
gulp
\\
bin
\\
gulp.js compile"
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -231,8 +352,19 @@
...
@@ -231,8 +352,19 @@
}
}
},
},
{
{
"c"
:
":: Configuration"
,
"c"
:
"::"
,
"t"
:
"source.dosbatch comment.line.colons.dosbatch"
,
"t"
:
"source.batchfile comment.line.colon.batchfile punctuation.definition.comment.batchfile"
,
"r"
:
{
"dark_plus"
:
"comment: #608B4E"
,
"light_plus"
:
"comment: #008000"
,
"dark_vs"
:
"comment: #608B4E"
,
"light_vs"
:
"comment: #008000"
,
"hc_black"
:
"comment: #7CA668"
}
},
{
"c"
:
" Configuration"
,
"t"
:
"source.batchfile comment.line.colon.batchfile"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"comment: #608B4E"
,
"dark_plus"
:
"comment: #608B4E"
,
"light_plus"
:
"comment: #008000"
,
"light_plus"
:
"comment: #008000"
,
...
@@ -243,7 +375,7 @@
...
@@ -243,7 +375,7 @@
},
},
{
{
"c"
:
"set"
,
"c"
:
"set"
,
"t"
:
"source.
dosbatch keyword.command.dosbatch
"
,
"t"
:
"source.
batchfile keyword.command.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"light_plus"
:
"keyword: #0000FF"
,
...
@@ -253,8 +385,41 @@
...
@@ -253,8 +385,41 @@
}
}
},
},
{
{
"c"
:
" NODE_ENV=development"
,
"c"
:
" "
,
"t"
:
"source.dosbatch"
,
"t"
:
"source.batchfile"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"dark_vs"
:
"default: #D4D4D4"
,
"light_vs"
:
"default: #000000"
,
"hc_black"
:
"default: #FFFFFF"
}
},
{
"c"
:
"NODE_ENV"
,
"t"
:
"source.batchfile variable.other.readwrite.batchfile"
,
"r"
:
{
"dark_plus"
:
"variable: #9CDCFE"
,
"light_plus"
:
"variable: #001080"
,
"dark_vs"
:
"default: #D4D4D4"
,
"light_vs"
:
"default: #000000"
,
"hc_black"
:
"variable: #9CDCFE"
}
},
{
"c"
:
"="
,
"t"
:
"source.batchfile keyword.operator.assignment.batchfile"
,
"r"
:
{
"dark_plus"
:
"keyword.operator: #D4D4D4"
,
"light_plus"
:
"keyword.operator: #000000"
,
"dark_vs"
:
"keyword.operator: #D4D4D4"
,
"light_vs"
:
"keyword.operator: #000000"
,
"hc_black"
:
"keyword.operator: #D4D4D4"
}
},
{
"c"
:
"development"
,
"t"
:
"source.batchfile"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -265,7 +430,7 @@
...
@@ -265,7 +430,7 @@
},
},
{
{
"c"
:
"call"
,
"c"
:
"call"
,
"t"
:
"source.
dosbatch keyword.control.statement.dosbatch
"
,
"t"
:
"source.
batchfile keyword.control.statement.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword.control: #C586C0"
,
"dark_plus"
:
"keyword.control: #C586C0"
,
"light_plus"
:
"keyword.control: #AF00DB"
,
"light_plus"
:
"keyword.control: #AF00DB"
,
...
@@ -276,7 +441,7 @@
...
@@ -276,7 +441,7 @@
},
},
{
{
"c"
:
" "
,
"c"
:
" "
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -287,7 +452,7 @@
...
@@ -287,7 +452,7 @@
},
},
{
{
"c"
:
"echo"
,
"c"
:
"echo"
,
"t"
:
"source.
dosbatch keyword.command.dosbatch
"
,
"t"
:
"source.
batchfile keyword.command.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"light_plus"
:
"keyword: #0000FF"
,
...
@@ -298,7 +463,7 @@
...
@@ -298,7 +463,7 @@
},
},
{
{
"c"
:
" "
,
"c"
:
" "
,
"t"
:
"source.
dosbatch
"
,
"t"
:
"source.
batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"light_plus"
:
"default: #000000"
,
...
@@ -308,19 +473,41 @@
...
@@ -308,19 +473,41 @@
}
}
},
},
{
{
"c"
:
"%%
LINE:rem +=%%
"
,
"c"
:
"%%"
,
"t"
:
"source.
dosbatch variable.other.parsetime.dosbatch
"
,
"t"
:
"source.
batchfile constant.character.escape.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"
variable: #9CDCFE
"
,
"dark_plus"
:
"
constant.character.escape: #D7BA7D
"
,
"light_plus"
:
"
variable: #001080
"
,
"light_plus"
:
"
constant.character.escape: #A31515
"
,
"dark_vs"
:
"default: #D4D4D4"
,
"dark_vs"
:
"default: #D4D4D4"
,
"light_vs"
:
"default: #000000"
,
"light_vs"
:
"default: #000000"
,
"hc_black"
:
"variable: #9CDCFE"
"hc_black"
:
"constant.character: #569CD6"
}
},
{
"c"
:
"LINE:rem +="
,
"t"
:
"source.batchfile"
,
"r"
:
{
"dark_plus"
:
"default: #D4D4D4"
,
"light_plus"
:
"default: #000000"
,
"dark_vs"
:
"default: #D4D4D4"
,
"light_vs"
:
"default: #000000"
,
"hc_black"
:
"default: #FFFFFF"
}
},
{
"c"
:
"%%"
,
"t"
:
"source.batchfile constant.character.escape.batchfile"
,
"r"
:
{
"dark_plus"
:
"constant.character.escape: #D7BA7D"
,
"light_plus"
:
"constant.character.escape: #A31515"
,
"dark_vs"
:
"default: #D4D4D4"
,
"light_vs"
:
"default: #000000"
,
"hc_black"
:
"constant.character: #569CD6"
}
}
},
},
{
{
"c"
:
"popd"
,
"c"
:
"popd"
,
"t"
:
"source.
dosbatch keyword.command.dosbatch
"
,
"t"
:
"source.
batchfile keyword.command.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"light_plus"
:
"keyword: #0000FF"
,
...
@@ -331,7 +518,7 @@
...
@@ -331,7 +518,7 @@
},
},
{
{
"c"
:
"endlocal"
,
"c"
:
"endlocal"
,
"t"
:
"source.
dosbatch keyword.command.dosbatch
"
,
"t"
:
"source.
batchfile keyword.command.batchfile
"
,
"r"
:
{
"r"
:
{
"dark_plus"
:
"keyword: #569CD6"
,
"dark_plus"
:
"keyword: #569CD6"
,
"light_plus"
:
"keyword: #0000FF"
,
"light_plus"
:
"keyword: #0000FF"
,
...
...
scripts/test-integration.sh
浏览文件 @
f06a42a8
...
@@ -13,9 +13,9 @@ fi
...
@@ -13,9 +13,9 @@ fi
cd
$ROOT
cd
$ROOT
# Integration Tests
# Integration Tests
./scripts/code.sh
$ROOT
/extensions/vscode-api-tests/testWorkspace
--extensionDevelopmentPath
=
$ROOT
/extensions/vscode-api-tests
--extensionTestsPath
=
$ROOT
/extensions/vscode-api-tests/out
--disableExtensions
--user-data-dir
=
$VSCODEUSERDATADIR
--skip-getting-started
#
./scripts/code.sh $ROOT/extensions/vscode-api-tests/testWorkspace --extensionDevelopmentPath=$ROOT/extensions/vscode-api-tests --extensionTestsPath=$ROOT/extensions/vscode-api-tests/out --disableExtensions --user-data-dir=$VSCODEUSERDATADIR --skip-getting-started
./scripts/code.sh
$ROOT
/extensions/vscode-colorize-tests/test
--extensionDevelopmentPath
=
$ROOT
/extensions/vscode-colorize-tests
--extensionTestsPath
=
$ROOT
/extensions/vscode-colorize-tests/out
--user-data-dir
=
$VSCODEUSERDATADIR
--skip-getting-started
./scripts/code.sh
$ROOT
/extensions/vscode-colorize-tests/test
--extensionDevelopmentPath
=
$ROOT
/extensions/vscode-colorize-tests
--extensionTestsPath
=
$ROOT
/extensions/vscode-colorize-tests/out
--user-data-dir
=
$VSCODEUSERDATADIR
--skip-getting-started
./scripts/test-int-mocha.sh
#
./scripts/test-int-mocha.sh
./scripts/code.sh
$ROOT
/extensions/emmet/test-fixtures
--extensionDevelopmentPath
=
$ROOT
/extensions/emmet
--extensionTestsPath
=
$ROOT
/extensions/emmet/out/test
--disableExtensions
--user-data-dir
=
$VSCODEUSERDATADIR
--skip-getting-started
#
./scripts/code.sh $ROOT/extensions/emmet/test-fixtures --extensionDevelopmentPath=$ROOT/extensions/emmet --extensionTestsPath=$ROOT/extensions/emmet/out/test --disableExtensions --user-data-dir=$VSCODEUSERDATADIR --skip-getting-started
rm
-r
$VSCODEUSERDATADIR
rm
-r
$VSCODEUSERDATADIR
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录