Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
ac63c6b7
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,发现更多精彩内容 >>
提交
ac63c6b7
编写于
2月 10, 2016
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update perl grammar (Nov 21)
上级
9ce9fdee
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
46 addition
and
16 deletion
+46
-16
extensions/perl/syntaxes/Perl 6.tmLanguage
extensions/perl/syntaxes/Perl 6.tmLanguage
+25
-12
extensions/perl/syntaxes/Perl.plist
extensions/perl/syntaxes/Perl.plist
+21
-4
未找到文件。
extensions/perl/syntaxes/Perl 6.tmLanguage
浏览文件 @
ac63c6b7
...
...
@@ -10,7 +10,7 @@
<string>
nqp
</string>
</array>
<key>
firstLineMatch
</key>
<string>
(^#!.*\b
perl6
\b)|use\s+v6
</string>
<string>
(^#!.*\b
(perl6|nqp)
\b)|use\s+v6
</string>
<key>
keyEquivalent
</key>
<string>
^~P
</string>
<key>
name
</key>
...
...
@@ -58,9 +58,28 @@
</dict>
</array>
</dict>
<dict>
<key>
captures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
storage.type.class.perl.6
</string>
</dict>
<key>
3
</key>
<dict>
<key>
name
</key>
<string>
entity.name.type.class.perl.6
</string>
</dict>
</dict>
<key>
match
</key>
<string>
(class|enum|grammar|knowhow|module|package|role|slang|subset)(\s+)(((?:::|')?(?:([a-zA-Z_\x{C0}-\x{FF}\$])([a-zA-Z0-9_\x{C0}-\x{FF}\\$]|[\-'][a-zA-Z0-9_\x{C0}-\x{FF}\$])*))+)
</string>
<key>
name
</key>
<string>
meta.class.perl.6
</string>
</dict>
<dict>
<key>
begin
</key>
<string>
'
</string>
<string>
(?
<
=\s)
'
</string>
<key>
beginCaptures
</key>
<dict>
<key>
0
</key>
...
...
@@ -279,12 +298,6 @@
<key>
name
</key>
<string>
storage.type.declare.routine.perl
</string>
</dict>
<dict>
<key>
match
</key>
<string>
\b(module|class|role|package|enum|grammar|slang|subset)\b
</string>
<key>
name
</key>
<string>
keyword.other.module.perl
</string>
</dict>
<dict>
<key>
match
</key>
<string>
\b(self)\b
</string>
...
...
@@ -361,19 +374,19 @@
<key>
match
</key>
<string>
\b(Object|Any|Junction|Whatever|Capture|MatchSignature|Proxy|Matcher|Package|Module|ClassGrammar|Scalar|Array|Hash|KeyHash|KeySet|KeyBagPair|List|Seq|Range|Set|Bag|Mapping|Void|UndefFailure|Exception|Code|Block|Routine|Sub|MacroMethod|Submethod|Regex|Str|str|Blob|Char|ByteCodepoint|Grapheme|StrPos|StrLen|Version|NumComplex|num|complex|Bit|bit|bool|True|FalseIncreasing|Decreasing|Ordered|Callable|AnyCharPositional|Associative|Ordering|KeyExtractorComparator|OrderingPair|IO|KitchenSink|RoleInt|int|int1|int2|int4|int8|int16|int32|int64Rat|rat|rat1|rat2|rat4|rat8|rat16|rat32|rat64Buf|buf|buf1|buf2|buf4|buf8|buf16|buf32|buf64UInt|uint|uint1|uint2|uint4|uint8|uint16|uint32uint64|Abstraction|utf8|utf16|utf32)\b
</string>
<key>
name
</key>
<string>
support.type.perl
</string>
<string>
support.type.perl
6
</string>
</dict>
<dict>
<key>
match
</key>
<string>
\b(div|x
|xx|mod|also|leg|cmp|before|after|eq|ne|le|lt|gt|ge|eqv|ff|fff|and|andthen|Z|X|or|xor|orelse|extra|m|mm|rx|s|tr
)\b
</string>
<string>
\b(div|x
x|x|mod|also|leg|cmp|before|after|eq|ne|le|lt|not|gt|ge|eqv|ff|fff|and|andthen|or|xor|orelse|extra|lcm|gcd
)\b
</string>
<key>
name
</key>
<string>
keyword.operator.perl
</string>
</dict>
<dict>
<key>
match
</key>
<string>
(\$|@|%|
&
)(\*|:|!|\^|~|=|\?|(
<
(?=.+
>
)))?([
A-Za-z_])([A-Za-z0-9_]|[\-'][A-Za-z0-9_
])*
</string>
<string>
(\$|@|%|
&
)(\*|:|!|\^|~|=|\?|(
<
(?=.+
>
)))?([
a-zA-Z_\x{C0}-\x{FF}\$])([a-zA-Z0-9_\x{C0}-\x{FF}\$]|[\-'][a-zA-Z0-9_\x{C0}-\x{FF}\$
])*
</string>
<key>
name
</key>
<string>
variable.other.
basic.perl
</string>
<string>
variable.other.
identifier.perl.6
</string>
</dict>
<dict>
<key>
match
</key>
...
...
extensions/perl/syntaxes/Perl.plist
浏览文件 @
ac63c6b7
...
...
@@ -14,6 +14,7 @@
<string>
t
</string>
<string>
PL
</string>
<string>
psgi
</string>
<string>
vcl
</string>
</array>
<key>
firstLineMatch
</key>
<string>
^#!.*\bperl\b
</string>
...
...
@@ -304,7 +305,7 @@
<key>
applyEndPatternLast
</key>
<integer>
1
</integer>
<key>
begin
</key>
<string>
\b(?=m\s*[^\sa-zA-Z0-9])
</string>
<string>
(?
<
!\{|\+|\-)
\b(?=m\s*[^\sa-zA-Z0-9])
</string>
<key>
comment
</key>
<string>
string.regexp.find-m.perl
</string>
<key>
end
</key>
...
...
@@ -503,7 +504,7 @@
</dict>
<dict>
<key>
begin
</key>
<string>
(m)\s*([^\sa-zA-Z0-9'\{\[\(\
<
])
</string>
<string>
(
?
<
!\{|\+|\-)(
m)\s*([^\sa-zA-Z0-9'\{\[\(\
<
])
</string>
<key>
captures
</key>
<dict>
<key>
0
</key>
...
...
@@ -1040,7 +1041,7 @@
<key>
comment
</key>
<string>
string.regexp.replace.extended
</string>
<key>
end
</key>
<string>
\2
((([egimosradlupc]*x[egimosradlupc]*)))\b
</string>
<string>
((([egimosradlupc]*x[egimosradlupc]*)))\b
</string>
<key>
endCaptures
</key>
<dict>
<key>
1
</key>
...
...
@@ -1343,10 +1344,26 @@
</dict>
<dict>
<key>
match
</key>
<string>
\b(__FILE__|__LINE__|__PACKAGE__|__SUB__
|__DATA__|__END__
)\b
</string>
<string>
\b(__FILE__|__LINE__|__PACKAGE__|__SUB__)\b
</string>
<key>
name
</key>
<string>
constant.language.perl
</string>
</dict>
<dict>
<key>
begin
</key>
<string>
\b(__DATA__|__END__)\n?
</string>
<key>
beginCaptures
</key>
<dict>
<key>
1
</key>
<dict>
<key>
name
</key>
<string>
constant.language.perl
</string>
</dict>
</dict>
<key>
contentName
</key>
<string>
text.plain
</string>
<key>
end
</key>
<string>
\z
</string>
</dict>
<dict>
<key>
match
</key>
<string>
(?
<
!-
>
)\b(continue|die|do|else|elsif|exit|for|foreach|goto|if|last|next|redo|return|select|unless|until|wait|while|switch|case|require|use|eval)\b
</string>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录