Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
20b497e6
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
20b497e6
编写于
10月 17, 2016
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[lua] Add update script
上级
262b3980
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
196 addition
and
305 deletion
+196
-305
extensions/lua/package.json
extensions/lua/package.json
+4
-1
extensions/lua/syntaxes/Lua.plist
extensions/lua/syntaxes/Lua.plist
+0
-304
extensions/lua/syntaxes/lua.json
extensions/lua/syntaxes/lua.json
+192
-0
未找到文件。
extensions/lua/package.json
浏览文件 @
20b497e6
...
...
@@ -3,6 +3,9 @@
"version"
:
"0.1.0"
,
"publisher"
:
"vscode"
,
"engines"
:
{
"vscode"
:
"*"
},
"scripts"
:
{
"update-grammar"
:
"node ../../build/npm/update-grammar.js textmate/lua.tmbundle Syntaxes/Lua.plist ./syntaxes/lua.json"
},
"contributes"
:
{
"languages"
:
[{
"id"
:
"lua"
,
...
...
@@ -13,7 +16,7 @@
"grammars"
:
[{
"language"
:
"lua"
,
"scopeName"
:
"source.lua"
,
"path"
:
"./syntaxes/
Lua.plist
"
"path"
:
"./syntaxes/
lua.json
"
}]
}
}
\ No newline at end of file
extensions/lua/syntaxes/Lua.plist
已删除
100644 → 0
浏览文件 @
262b3980
<?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>
comment
</key>
<string>
Lua Syntax: version 0.8
</string>
<key>
fileTypes
</key>
<array>
<string>
lua
</string>
</array>
<key>
firstLineMatch
</key>
<string>
\A#!.*?\blua\b
</string>
<key>
keyEquivalent
</key>
<string>
^~L
</string>
<key>
name
</key>
<string>
Lua
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
keyword.control.lua
</string>
</dict>
<key>
2
</key>
<dict>
<key>
name
</key>
<string>
entity.name.function.scope.lua
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
entity.name.function.lua
</string>
</dict>
<key>
4
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.parameters.begin.lua
</string>
</dict>
<key>
5
</key>
<dict>
<key>
name
</key>
<string>
variable.parameter.function.lua
</string>
</dict>
<key>
6
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.parameters.end.lua
</string>
</dict>
</dict>
<key>
match
</key>
<string>
\b(function)(?:\s+([a-zA-Z_.:]+[.:])?([a-zA-Z_]\w*)\s*)?(\()([^)]*)(\))
</string>
<key>
name
</key>
<string>
meta.function.lua
</string>
</dict>
<dict>
<key>
match
</key>
<string>
(?
<
![\d.])\s0x[a-fA-F\d]+|\b\d+(\.\d+)?([eE]-?\d+)?|\.\d+([eE]-?\d+)?
</string>
<key>
name
</key>
<string>
constant.numeric.lua
</string>
</dict>
<dict>
<key>
begin
</key>
<string>
'
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.lua
</string>
</dict>
</dict>
<key>
end
</key>
<string>
'
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.lua
</string>
</dict>
</dict>
<key>
name
</key>
<string>
string.quoted.single.lua
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
match
</key>
<string>
\\.
</string>
<key>
name
</key>
<string>
constant.character.escape.lua
</string>
</dict>
</array>
</dict>
<dict>
<key>
begin
</key>
<string>
"
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.lua
</string>
</dict>
</dict>
<key>
end
</key>
<string>
"
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.lua
</string>
</dict>
</dict>
<key>
name
</key>
<string>
string.quoted.double.lua
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
match
</key>
<string>
\\.
</string>
<key>
name
</key>
<string>
constant.character.escape.lua
</string>
</dict>
</array>
</dict>
<dict>
<key>
begin
</key>
<string>
(?
<
=\.cdef)\s*(\[(=*)\[)
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
string.quoted.other.multiline.lua
</string>
</dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.lua
</string>
</dict>
</dict>
<key>
contentName
</key>
<string>
meta.embedded.lua
</string>
<key>
end
</key>
<string>
(\]\2\])
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
string.quoted.other.multiline.lua
</string>
</dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.lua
</string>
</dict>
</dict>
<key>
patterns
</key>
<array>
<dict>
<key>
include
</key>
<string>
source.c
</string>
</dict>
</array>
</dict>
<dict>
<key>
begin
</key>
<string>
(?
<
!--)\[(=*)\[
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.begin.lua
</string>
</dict>
</dict>
<key>
end
</key>
<string>
\]\1\]
</string>
<key>
endCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.string.end.lua
</string>
</dict>
</dict>
<key>
name
</key>
<string>
string.quoted.other.multiline.lua
</string>
</dict>
<dict>
<key>
begin
</key>
<string>
--\[(=*)\[
</string>
<key>
captures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.comment.lua
</string>
</dict>
</dict>
<key>
end
</key>
<string>
\]\1\]
</string>
<key>
name
</key>
<string>
comment.block.lua
</string>
</dict>
<dict>
<key>
begin
</key>
<string>
(^[ \t]+)?(?=--(?!\[\[))
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
punctuation.whitespace.comment.leading.lua
</string>
</dict>
</dict>
<key>
end
</key>
<string>
(?!\G)
</string>
<key>
patterns
</key>
<array>
<dict>
<key>
begin
</key>
<string>
--
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
<dict>
<key>
name
</key>
<string>
punctuation.definition.comment.lua
</string>
</dict>
</dict>
<key>
end
</key>
<string>
\n
</string>
<key>
name
</key>
<string>
comment.line.double-dash.lua
</string>
</dict>
</array>
</dict>
<dict>
<key>
match
</key>
<string>
\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|function|local|in)\b
</string>
<key>
name
</key>
<string>
keyword.control.lua
</string>
</dict>
<dict>
<key>
match
</key>
<string>
(?
<
![^.]\.|:)\b(false|nil|true|_G|_VERSION|math\.(pi|huge))\b|(?
<
![.])\.{3}(?!\.)
</string>
<key>
name
</key>
<string>
constant.language.lua
</string>
</dict>
<dict>
<key>
match
</key>
<string>
(?
<
![^.]\.|:)\b(self)\b
</string>
<key>
name
</key>
<string>
variable.language.self.lua
</string>
</dict>
<dict>
<key>
match
</key>
<string>
(?
<
![^.]\.|:)\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\b(?=\s*(?:[({"']|\[\[))
</string>
<key>
name
</key>
<string>
support.function.lua
</string>
</dict>
<dict>
<key>
match
</key>
<string>
(?
<
![^.]\.|:)\b(coroutine\.(create|resume|running|status|wrap|yield)|string\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(concat|insert|maxn|remove|sort)|math\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(cpath|loaded|loadlib|path|preload|seeall)|debug\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))\b(?=\s*(?:[({"']|\[\[))
</string>
<key>
name
</key>
<string>
support.function.library.lua
</string>
</dict>
<dict>
<key>
match
</key>
<string>
\b(and|or|not)\b
</string>
<key>
name
</key>
<string>
keyword.operator.lua
</string>
</dict>
<dict>
<key>
match
</key>
<string>
\b([A-Za-z_]\w*)\b(?=\s*(?:[({"']|\[\[))
</string>
<key>
name
</key>
<string>
support.function.any-method.lua
</string>
</dict>
<dict>
<key>
match
</key>
<string>
(?
<
=[^.]\.|:)\b([A-Za-z_]\w*)
</string>
<key>
name
</key>
<string>
variable.other.lua
</string>
</dict>
<dict>
<key>
match
</key>
<string>
\+|-|%|#|\*|\/|\^|==?|~=|
<
=?|
>
=?|(?
<
!\.)\.{2}(?!\.)
</string>
<key>
name
</key>
<string>
keyword.operator.lua
</string>
</dict>
</array>
<key>
scopeName
</key>
<string>
source.lua
</string>
<key>
uuid
</key>
<string>
93E017CC-6F27-11D9-90EB-000D93589AF7
</string>
</dict>
</plist>
\ No newline at end of file
extensions/lua/syntaxes/lua.json
0 → 100644
浏览文件 @
20b497e6
{
"comment"
:
"Lua Syntax: version 0.8"
,
"fileTypes"
:
[
"lua"
],
"firstLineMatch"
:
"
\\
A#!.*?
\\
blua
\\
b"
,
"keyEquivalent"
:
"^~L"
,
"name"
:
"Lua"
,
"patterns"
:
[
{
"captures"
:
{
"1"
:
{
"name"
:
"keyword.control.lua"
},
"2"
:
{
"name"
:
"entity.name.function.scope.lua"
},
"3"
:
{
"name"
:
"entity.name.function.lua"
},
"4"
:
{
"name"
:
"punctuation.definition.parameters.begin.lua"
},
"5"
:
{
"name"
:
"variable.parameter.function.lua"
},
"6"
:
{
"name"
:
"punctuation.definition.parameters.end.lua"
}
},
"match"
:
"
\\
b(function)(?:
\\
s+([a-zA-Z_.:]+[.:])?([a-zA-Z_]
\\
w*)
\\
s*)?(
\\
()([^)]*)(
\\
))"
,
"name"
:
"meta.function.lua"
},
{
"match"
:
"(?<![
\\
d.])
\\
s0x[a-fA-F
\\
d]+|
\\
b
\\
d+(
\\
.
\\
d+)?([eE]-?
\\
d+)?|
\\
.
\\
d+([eE]-?
\\
d+)?"
,
"name"
:
"constant.numeric.lua"
},
{
"begin"
:
"'"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.lua"
}
},
"end"
:
"'"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.lua"
}
},
"name"
:
"string.quoted.single.lua"
,
"patterns"
:
[
{
"match"
:
"
\\\\
."
,
"name"
:
"constant.character.escape.lua"
}
]
},
{
"begin"
:
"
\"
"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.lua"
}
},
"end"
:
"
\"
"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.lua"
}
},
"name"
:
"string.quoted.double.lua"
,
"patterns"
:
[
{
"match"
:
"
\\\\
."
,
"name"
:
"constant.character.escape.lua"
}
]
},
{
"begin"
:
"(?<=
\\
.cdef)
\\
s*(
\\
[(=*)
\\
[)"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"string.quoted.other.multiline.lua"
},
"1"
:
{
"name"
:
"punctuation.definition.string.begin.lua"
}
},
"contentName"
:
"meta.embedded.lua"
,
"end"
:
"(
\\
]
\\
2
\\
])"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"string.quoted.other.multiline.lua"
},
"1"
:
{
"name"
:
"punctuation.definition.string.end.lua"
}
},
"patterns"
:
[
{
"include"
:
"source.c"
}
]
},
{
"begin"
:
"(?<!--)
\\
[(=*)
\\
["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.lua"
}
},
"end"
:
"
\\
]
\\
1
\\
]"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.lua"
}
},
"name"
:
"string.quoted.other.multiline.lua"
},
{
"begin"
:
"--
\\
[(=*)
\\
["
,
"captures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.comment.lua"
}
},
"end"
:
"
\\
]
\\
1
\\
]"
,
"name"
:
"comment.block.lua"
},
{
"begin"
:
"(^[
\\
t]+)?(?=--(?!
\\
[
\\
[))"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"punctuation.whitespace.comment.leading.lua"
}
},
"end"
:
"(?!
\\
G)"
,
"patterns"
:
[
{
"begin"
:
"--"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.comment.lua"
}
},
"end"
:
"
\\
n"
,
"name"
:
"comment.line.double-dash.lua"
}
]
},
{
"match"
:
"
\\
b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)
\\
b"
,
"name"
:
"keyword.control.lua"
},
{
"match"
:
"(?<![^.]
\\
.|:)
\\
b(false|nil|true|_G|_VERSION|math
\\
.(pi|huge))
\\
b|(?<![.])
\\
.{3}(?!
\\
.)"
,
"name"
:
"constant.language.lua"
},
{
"match"
:
"(?<![^.]
\\
.|:)
\\
b(self)
\\
b"
,
"name"
:
"variable.language.self.lua"
},
{
"match"
:
"(?<![^.]
\\
.|:)
\\
b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)
\\
b(?=
\\
s*(?:[({
\"
']|
\\
[
\\
[))"
,
"name"
:
"support.function.lua"
},
{
"match"
:
"(?<![^.]
\\
.|:)
\\
b(coroutine
\\
.(create|resume|running|status|wrap|yield)|string
\\
.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table
\\
.(concat|insert|maxn|remove|sort)|math
\\
.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io
\\
.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os
\\
.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package
\\
.(cpath|loaded|loadlib|path|preload|seeall)|debug
\\
.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))
\\
b(?=
\\
s*(?:[({
\"
']|
\\
[
\\
[))"
,
"name"
:
"support.function.library.lua"
},
{
"match"
:
"
\\
b(and|or|not)
\\
b"
,
"name"
:
"keyword.operator.lua"
},
{
"match"
:
"
\\
b([A-Za-z_]
\\
w*)
\\
b(?=
\\
s*(?:[({
\"
']|
\\
[
\\
[))"
,
"name"
:
"support.function.any-method.lua"
},
{
"match"
:
"(?<=[^.]
\\
.|:)
\\
b([A-Za-z_]
\\
w*)"
,
"name"
:
"variable.other.lua"
},
{
"match"
:
"
\\
+|-|%|#|
\\
*|
\\
/|
\\
^|==?|~=|<=?|>=?|(?<!
\\
.)
\\
.{2}(?!
\\
.)"
,
"name"
:
"keyword.operator.lua"
}
],
"scopeName"
:
"source.lua"
,
"uuid"
:
"93E017CC-6F27-11D9-90EB-000D93589AF7"
,
"version"
:
"https://github.com/textmate/lua.tmbundle/commit/609fe340f40b31f4189dabbb38f885b58cf0dd26"
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录