Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Phodal
scie
提交
b2f747c9
S
scie
项目概览
Phodal
/
scie
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
scie
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
b2f747c9
编写于
8月 31, 2020
作者:
P
Phodal Huang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: refactor list to box
上级
fb861cd1
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
597 addition
and
26 deletion
+597
-26
scie-grammar/src/grammar/grammar.rs
scie-grammar/src/grammar/grammar.rs
+1
-0
scie-grammar/src/rule/begin_end_rule.rs
scie-grammar/src/rule/begin_end_rule.rs
+4
-4
scie-grammar/src/rule/begin_while_rule.rs
scie-grammar/src/rule/begin_while_rule.rs
+2
-2
scie-grammar/src/rule/include_only_rule.rs
scie-grammar/src/rule/include_only_rule.rs
+1
-1
scie-grammar/src/rule/match_rule.rs
scie-grammar/src/rule/match_rule.rs
+1
-1
scie-grammar/src/rule/mod.rs
scie-grammar/src/rule/mod.rs
+5
-5
vscode-tests/testdata/makefile.out.json
vscode-tests/testdata/makefile.out.json
+583
-13
未找到文件。
scie-grammar/src/grammar/grammar.rs
浏览文件 @
b2f747c9
...
@@ -225,6 +225,7 @@ impl Grammar {
...
@@ -225,6 +225,7 @@ impl Grammar {
anchor_position
:
i32
,
anchor_position
:
i32
,
)
{
)
{
let
mut
rule
=
stack
.get_rule
(
self
);
let
mut
rule
=
stack
.get_rule
(
self
);
println!
(
"start compile: {:?}"
,
rule
.clone
()
.type_of
());
rule
.compile
(
rule
.compile
(
self
,
self
,
stack
.end_rule
,
stack
.end_rule
,
...
...
scie-grammar/src/rule/begin_end_rule.rs
浏览文件 @
b2f747c9
...
@@ -77,7 +77,7 @@ impl AbstractRule for BeginEndRule {
...
@@ -77,7 +77,7 @@ impl AbstractRule for BeginEndRule {
rule
.collect_patterns_recursive
(
grammar
,
out
,
is_first
);
rule
.collect_patterns_recursive
(
grammar
,
out
,
is_first
);
}
}
}
else
{
}
else
{
out
.push
(
self
._begin
.clone
(
));
out
.push
(
Box
::
from
(
self
._begin
.clone
()
));
}
}
}
}
...
@@ -95,12 +95,12 @@ impl AbstractRule for BeginEndRule {
...
@@ -95,12 +95,12 @@ impl AbstractRule for BeginEndRule {
if
let
Some
(
apply_end
)
=
self
.apply_end_pattern_last
{
if
let
Some
(
apply_end
)
=
self
.apply_end_pattern_last
{
if
apply_end
{
if
apply_end
{
cached_compiled_patterns
.push
(
self
._end
.clone
(
));
cached_compiled_patterns
.push
(
Box
::
new
(
self
._end
.clone
()
));
}
else
{
}
else
{
cached_compiled_patterns
.unshift
(
self
._end
.clone
(
));
cached_compiled_patterns
.unshift
(
Box
::
new
(
self
._end
.clone
()
));
}
}
}
else
{
}
else
{
cached_compiled_patterns
.unshift
(
self
._end
.clone
(
));
cached_compiled_patterns
.unshift
(
Box
::
new
(
self
._end
.clone
()
));
}
}
self
._cached_compiled_patterns
=
Some
(
cached_compiled_patterns
);
self
._cached_compiled_patterns
=
Some
(
cached_compiled_patterns
);
...
...
scie-grammar/src/rule/begin_while_rule.rs
浏览文件 @
b2f747c9
...
@@ -74,10 +74,10 @@ impl AbstractRule for BeginWhileRule {
...
@@ -74,10 +74,10 @@ impl AbstractRule for BeginWhileRule {
if
is_first
{
if
is_first
{
for
x
in
self
.patterns
.clone
()
{
for
x
in
self
.patterns
.clone
()
{
let
mut
rule
=
grammar
.get_rule
(
x
);
let
mut
rule
=
grammar
.get_rule
(
x
);
rule
.collect_patterns_recursive
(
grammar
,
out
,
is_first
);
rule
.collect_patterns_recursive
(
grammar
,
out
,
false
);
}
}
}
else
{
}
else
{
out
.push
(
self
._begin
.clone
(
));
out
.push
(
Box
::
new
(
self
._begin
.clone
()
));
}
}
}
}
...
...
scie-grammar/src/rule/include_only_rule.rs
浏览文件 @
b2f747c9
...
@@ -57,7 +57,7 @@ impl AbstractRule for IncludeOnlyRule {
...
@@ -57,7 +57,7 @@ impl AbstractRule for IncludeOnlyRule {
for
x
in
self
.patterns
.clone
()
{
for
x
in
self
.patterns
.clone
()
{
let
mut
rule
=
grammar
.get_rule
(
x
);
let
mut
rule
=
grammar
.get_rule
(
x
);
println!
(
"{:?}, patterns: {:?}"
,
rule
,
out
.clone
());
println!
(
"{:?}, patterns: {:?}"
,
rule
,
out
.clone
());
//
rule.collect_patterns_recursive(grammar, out, is_first);
rule
.collect_patterns_recursive
(
grammar
,
out
,
is_first
);
}
}
}
}
...
...
scie-grammar/src/rule/match_rule.rs
浏览文件 @
b2f747c9
...
@@ -51,7 +51,7 @@ impl AbstractRule for MatchRule {
...
@@ -51,7 +51,7 @@ impl AbstractRule for MatchRule {
out
:
&
mut
RegExpSourceList
,
out
:
&
mut
RegExpSourceList
,
is_first
:
bool
,
is_first
:
bool
,
)
{
)
{
out
.push
(
self
._match
.clone
(
));
out
.push
(
Box
::
new
(
self
._match
.clone
()
));
}
}
fn
compile
(
fn
compile
(
...
...
scie-grammar/src/rule/mod.rs
浏览文件 @
b2f747c9
...
@@ -67,7 +67,7 @@ pub struct RegExpSourceList {
...
@@ -67,7 +67,7 @@ pub struct RegExpSourceList {
pub
_
has_anchors
:
bool
,
pub
_
has_anchors
:
bool
,
pub
_
cached
:
Option
<
CompiledRule
>
,
pub
_
cached
:
Option
<
CompiledRule
>
,
pub
_
anchor_cache
:
AnchorCache
,
pub
_
anchor_cache
:
AnchorCache
,
pub
_
items
:
Vec
<
RegExpSource
>
,
pub
_
items
:
Vec
<
Box
<
RegExpSource
>
>
,
}
}
impl
RegExpSourceList
{
impl
RegExpSourceList
{
...
@@ -80,17 +80,17 @@ impl RegExpSourceList {
...
@@ -80,17 +80,17 @@ impl RegExpSourceList {
}
}
}
}
pub
fn
push
(
&
mut
self
,
item
:
RegExpSource
)
{
pub
fn
push
(
&
mut
self
,
item
:
Box
<
RegExpSource
>
)
{
self
._items
.push
(
item
.clone
());
self
._items
.push
(
item
.clone
());
if
item
.has_anchor
{
if
item
.
clone
()
.
has_anchor
{
self
._has_anchors
=
true
;
self
._has_anchors
=
true
;
}
}
}
}
pub
fn
unshift
(
&
mut
self
,
item
:
RegExpSource
)
{
pub
fn
unshift
(
&
mut
self
,
item
:
Box
<
RegExpSource
>
)
{
self
._items
.push
(
item
.clone
());
self
._items
.push
(
item
.clone
());
self
._items
.rotate_right
(
1
);
self
._items
.rotate_right
(
1
);
if
item
.has_anchor
{
if
item
.
clone
()
.
has_anchor
{
self
._has_anchors
=
true
;
self
._has_anchors
=
true
;
}
}
}
}
...
...
vscode-tests/testdata/makefile.out.json
浏览文件 @
b2f747c9
...
@@ -101,7 +101,35 @@
...
@@ -101,7 +101,35 @@
"_hasAnchors"
:
true
,
"_hasAnchors"
:
true
,
"_cached"
:
null
,
"_cached"
:
null
,
"_anchorCache"
:
{
"_anchorCache"
:
{
"A0_G0"
:
null
,
"A0_G0"
:
{
"debugRegExps"
:
[
"(^[
\\
t]+)?(?=#)"
,
"(^[ ]*|
\\
\\
s*)([^
\\
s]+)
\\
s*(=|
\\
?=|:=|
\\
+=)"
,
"^(?!
\\
t)([^:]*)(:)(?!
\\
=)"
,
"^[ ]*([s
\\
-]?include)
\\
b"
,
"^[ ]*(vpath)
\\
b"
,
"^(?:(override)
\\
s*)?(define)
\\
s*([^
\\
s]+)
\\
s*(=|
\\
?=|:=|
\\
+=)?(?=
\\
s)"
,
"^[ ]*(export)
\\
b"
,
"^[ ]*(override|private)
\\
b"
,
"^[ ]*(unexport|undefine)
\\
b"
,
"^(ifdef|ifndef)
\\
s*([^
\\
s]+)(?=
\\
s)"
,
"^(ifeq|ifneq)(?=
\\
s)"
],
"rules"
:
[
2
,
7
,
28
,
45
,
48
,
51
,
61
,
64
,
66
,
69
,
77
],
"scanner"
:
{}
},
"A0_G1"
:
null
,
"A0_G1"
:
null
,
"A1_G0"
:
{
"A1_G0"
:
{
"debugRegExps"
:
[
"debugRegExps"
:
[
...
@@ -316,7 +344,69 @@
...
@@ -316,7 +344,69 @@
11
11
],
],
"hasMissingPatterns"
:
true
,
"hasMissingPatterns"
:
true
,
"_cachedCompiledPatterns"
:
null
,
"_cachedCompiledPatterns"
:
{
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
"
\\
n"
,
"_anchorCache"
:
null
,
"ruleId"
:
-1
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"
\\\\\\
n"
,
"_anchorCache"
:
null
,
"ruleId"
:
10
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"(^[
\\
t]+)?(?=#)"
,
"_anchorCache"
:
null
,
"ruleId"
:
2
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"(
\\
$?
\\
$)[@%<?^+*]"
,
"_anchorCache"
:
null
,
"ruleId"
:
12
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"
\\
$?
\\
$
\\
("
,
"_anchorCache"
:
null
,
"ruleId"
:
14
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
false
,
"_cached"
:
{
"debugRegExps"
:
[
"
\\
n"
,
"
\\\\\\
n"
,
"(^[
\\
t]+)?(?=#)"
,
"(
\\
$?
\\
$)[@%<?^+*]"
,
"
\\
$?
\\
$
\\
("
],
"rules"
:
[
-1
,
10
,
2
,
12
,
14
],
"scanner"
:
{}
},
"_anchorCache"
:
{
"A0_G0"
:
null
,
"A0_G1"
:
null
,
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_type"
:
"BeginEndRule"
"_type"
:
"BeginEndRule"
},
},
{
{
...
@@ -457,7 +547,127 @@
...
@@ -457,7 +547,127 @@
22
22
],
],
"hasMissingPatterns"
:
false
,
"hasMissingPatterns"
:
false
,
"_cachedCompiledPatterns"
:
null
,
"_cachedCompiledPatterns"
:
{
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
"
\\
)"
,
"_anchorCache"
:
null
,
"ruleId"
:
-1
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"(
\\
$?
\\
$)[@%<?^+*]"
,
"_anchorCache"
:
null
,
"ruleId"
:
12
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"
\\
$?
\\
$
\\
("
,
"_anchorCache"
:
null
,
"ruleId"
:
14
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
true
,
"source"
:
"
\\
G(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|
\\
.LIBPATTERNS)(?=
\\
s*
\\
))"
,
"_anchorCache"
:
{
"A0_G0"
:
"
\\
(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|
\\
.LIBPATTERNS)(?=
\\
s*
\\
))"
,
"A0_G1"
:
"
\\
G(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|
\\
.LIBPATTERNS)(?=
\\
s*
\\
))"
,
"A1_G0"
:
"
\\
(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|
\\
.LIBPATTERNS)(?=
\\
s*
\\
))"
,
"A1_G1"
:
"
\\
G(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|
\\
.LIBPATTERNS)(?=
\\
s*
\\
))"
},
"ruleId"
:
17
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
true
,
"source"
:
"
\\
G(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value)
\\
s"
,
"_anchorCache"
:
{
"A0_G0"
:
"
\\
(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value)
\\
s"
,
"A0_G1"
:
"
\\
G(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value)
\\
s"
,
"A1_G0"
:
"
\\
(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value)
\\
s"
,
"A1_G1"
:
"
\\
G(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value)
\\
s"
},
"ruleId"
:
18
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
true
,
"source"
:
"
\\
G(origin|flavor)
\\
s(?=[^
\\
s)]+
\\
s*
\\
))"
,
"_anchorCache"
:
{
"A0_G0"
:
"
\\
(origin|flavor)
\\
s(?=[^
\\
s)]+
\\
s*
\\
))"
,
"A0_G1"
:
"
\\
G(origin|flavor)
\\
s(?=[^
\\
s)]+
\\
s*
\\
))"
,
"A1_G0"
:
"
\\
(origin|flavor)
\\
s(?=[^
\\
s)]+
\\
s*
\\
))"
,
"A1_G1"
:
"
\\
G(origin|flavor)
\\
s(?=[^
\\
s)]+
\\
s*
\\
))"
},
"ruleId"
:
21
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
true
,
"source"
:
"
\\
G(?!
\\
))"
,
"_anchorCache"
:
{
"A0_G0"
:
"
\\
(?!
\\
))"
,
"A0_G1"
:
"
\\
G(?!
\\
))"
,
"A1_G0"
:
"
\\
(?!
\\
))"
,
"A1_G1"
:
"
\\
G(?!
\\
))"
},
"ruleId"
:
22
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
true
,
"_cached"
:
null
,
"_anchorCache"
:
{
"A0_G0"
:
{
"debugRegExps"
:
[
"
\\
)"
,
"(
\\
$?
\\
$)[@%<?^+*]"
,
"
\\
$?
\\
$
\\
("
,
"
\\
(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|
\\
.LIBPATTERNS)(?=
\\
s*
\\
))"
,
"
\\
(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value)
\\
s"
,
"
\\
(origin|flavor)
\\
s(?=[^
\\
s)]+
\\
s*
\\
))"
,
"
\\
(?!
\\
))"
],
"rules"
:
[
-1
,
12
,
14
,
17
,
18
,
21
,
22
],
"scanner"
:
{}
},
"A0_G1"
:
{
"debugRegExps"
:
[
"
\\
)"
,
"(
\\
$?
\\
$)[@%<?^+*]"
,
"
\\
$?
\\
$
\\
("
,
"
\\
G(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|
\\
.LIBPATTERNS)(?=
\\
s*
\\
))"
,
"
\\
G(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value)
\\
s"
,
"
\\
G(origin|flavor)
\\
s(?=[^
\\
s)]+
\\
s*
\\
))"
,
"
\\
G(?!
\\
))"
],
"rules"
:
[
-1
,
12
,
14
,
17
,
18
,
21
,
22
],
"scanner"
:
{}
},
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_type"
:
"BeginEndRule"
"_type"
:
"BeginEndRule"
},
},
{
{
...
@@ -643,7 +853,51 @@
...
@@ -643,7 +853,51 @@
11
11
],
],
"hasMissingPatterns"
:
false
,
"hasMissingPatterns"
:
false
,
"_cachedCompiledPatterns"
:
null
,
"_cachedCompiledPatterns"
:
{
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
"(?=
\\
))"
,
"_anchorCache"
:
null
,
"ruleId"
:
-1
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"(
\\
$?
\\
$)[@%<?^+*]"
,
"_anchorCache"
:
null
,
"ruleId"
:
12
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"
\\
$?
\\
$
\\
("
,
"_anchorCache"
:
null
,
"ruleId"
:
14
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
false
,
"_cached"
:
{
"debugRegExps"
:
[
"(?=
\\
))"
,
"(
\\
$?
\\
$)[@%<?^+*]"
,
"
\\
$?
\\
$
\\
("
],
"rules"
:
[
-1
,
12
,
14
],
"scanner"
:
{}
},
"_anchorCache"
:
{
"A0_G0"
:
null
,
"A0_G1"
:
null
,
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_type"
:
"BeginEndRule"
"_type"
:
"BeginEndRule"
},
},
{
{
...
@@ -814,7 +1068,68 @@
...
@@ -814,7 +1068,68 @@
39
39
],
],
"hasMissingPatterns"
:
false
,
"hasMissingPatterns"
:
false
,
"_cachedCompiledPatterns"
:
null
,
"_cachedCompiledPatterns"
:
{
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
"^(?!
\\
t)"
,
"_anchorCache"
:
null
,
"ruleId"
:
-1
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
true
,
"source"
:
"
\\
G"
,
"_anchorCache"
:
{
"A0_G0"
:
"
\\
"
,
"A0_G1"
:
"
\\
G"
,
"A1_G0"
:
"
\\
"
,
"A1_G1"
:
"
\\
G"
},
"ruleId"
:
36
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"^
\\
t"
,
"_anchorCache"
:
null
,
"ruleId"
:
39
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
true
,
"_cached"
:
null
,
"_anchorCache"
:
{
"A0_G0"
:
{
"debugRegExps"
:
[
"^(?!
\\
t)"
,
"
\\
"
,
"^
\\
t"
],
"rules"
:
[
-1
,
36
,
39
],
"scanner"
:
{}
},
"A0_G1"
:
{
"debugRegExps"
:
[
"^(?!
\\
t)"
,
"
\\
G"
,
"^
\\
t"
],
"rules"
:
[
-1
,
36
,
39
],
"scanner"
:
{}
},
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_type"
:
"BeginEndRule"
"_type"
:
"BeginEndRule"
},
},
{
{
...
@@ -828,7 +1143,42 @@
...
@@ -828,7 +1143,42 @@
32
32
],
],
"hasMissingPatterns"
:
false
,
"hasMissingPatterns"
:
false
,
"_cachedCompiledPatterns"
:
null
,
"_cachedCompiledPatterns"
:
{
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
"^
\\
s*(
\\
.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))
\\
s*$"
,
"_anchorCache"
:
null
,
"ruleId"
:
30
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"(?=
\\
S)"
,
"_anchorCache"
:
null
,
"ruleId"
:
32
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
false
,
"_cached"
:
{
"debugRegExps"
:
[
"^
\\
s*(
\\
.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))
\\
s*$"
,
"(?=
\\
S)"
],
"rules"
:
[
30
,
32
],
"scanner"
:
{}
},
"_anchorCache"
:
{
"A0_G0"
:
null
,
"A0_G1"
:
null
,
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_type"
:
"IncludeOnlyRule"
"_type"
:
"IncludeOnlyRule"
},
},
{
{
...
@@ -897,7 +1247,60 @@
...
@@ -897,7 +1247,60 @@
33
33
],
],
"hasMissingPatterns"
:
false
,
"hasMissingPatterns"
:
false
,
"_cachedCompiledPatterns"
:
null
,
"_cachedCompiledPatterns"
:
{
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
"(?=
\\
s|$)"
,
"_anchorCache"
:
null
,
"ruleId"
:
-1
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"(
\\
$?
\\
$)[@%<?^+*]"
,
"_anchorCache"
:
null
,
"ruleId"
:
12
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"
\\
$?
\\
$
\\
("
,
"_anchorCache"
:
null
,
"ruleId"
:
14
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"%"
,
"_anchorCache"
:
null
,
"ruleId"
:
33
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
false
,
"_cached"
:
{
"debugRegExps"
:
[
"(?=
\\
s|$)"
,
"(
\\
$?
\\
$)[@%<?^+*]"
,
"
\\
$?
\\
$
\\
("
,
"%"
],
"rules"
:
[
-1
,
12
,
14
,
33
],
"scanner"
:
{}
},
"_anchorCache"
:
{
"A0_G0"
:
null
,
"A0_G1"
:
null
,
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_type"
:
"BeginEndRule"
"_type"
:
"BeginEndRule"
},
},
{
{
...
@@ -971,7 +1374,78 @@
...
@@ -971,7 +1374,78 @@
11
11
],
],
"hasMissingPatterns"
:
false
,
"hasMissingPatterns"
:
false
,
"_cachedCompiledPatterns"
:
null
,
"_cachedCompiledPatterns"
:
{
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
"^"
,
"_anchorCache"
:
null
,
"ruleId"
:
-1
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"
\\\\\\
n"
,
"_anchorCache"
:
null
,
"ruleId"
:
37
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"%|
\\
*"
,
"_anchorCache"
:
null
,
"ruleId"
:
38
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"(^[
\\
t]+)?(?=#)"
,
"_anchorCache"
:
null
,
"ruleId"
:
2
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"(
\\
$?
\\
$)[@%<?^+*]"
,
"_anchorCache"
:
null
,
"ruleId"
:
12
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"
\\
$?
\\
$
\\
("
,
"_anchorCache"
:
null
,
"ruleId"
:
14
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
false
,
"_cached"
:
{
"debugRegExps"
:
[
"^"
,
"
\\\\\\
n"
,
"%|
\\
*"
,
"(^[
\\
t]+)?(?=#)"
,
"(
\\
$?
\\
$)[@%<?^+*]"
,
"
\\
$?
\\
$
\\
("
],
"rules"
:
[
-1
,
37
,
38
,
2
,
12
,
14
],
"scanner"
:
{}
},
"_anchorCache"
:
{
"A0_G0"
:
null
,
"A0_G1"
:
null
,
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_type"
:
"BeginEndRule"
"_type"
:
"BeginEndRule"
},
},
{
{
...
@@ -1035,8 +1509,60 @@
...
@@ -1035,8 +1509,60 @@
40
40
],
],
"hasMissingPatterns"
:
false
,
"hasMissingPatterns"
:
false
,
"_cachedCompiledPatterns"
:
null
,
"_cachedCompiledPatterns"
:
{
"_cachedCompiledWhilePatterns"
:
null
,
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
".+
\\
n?"
,
"_anchorCache"
:
null
,
"ruleId"
:
40
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
false
,
"_cached"
:
{
"debugRegExps"
:
[
".+
\\
n?"
],
"rules"
:
[
40
],
"scanner"
:
{}
},
"_anchorCache"
:
{
"A0_G0"
:
null
,
"A0_G1"
:
null
,
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_cachedCompiledWhilePatterns"
:
{
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
"^
\\
t"
,
"_anchorCache"
:
null
,
"ruleId"
:
-2
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
false
,
"_cached"
:
{
"debugRegExps"
:
[
"^
\\
t"
],
"rules"
:
[
-2
],
"scanner"
:
{}
},
"_anchorCache"
:
{
"A0_G0"
:
null
,
"A0_G1"
:
null
,
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_type"
:
"BeginWhileRule"
"_type"
:
"BeginWhileRule"
},
},
{
{
...
@@ -1077,7 +1603,51 @@
...
@@ -1077,7 +1603,51 @@
11
11
],
],
"hasMissingPatterns"
:
true
,
"hasMissingPatterns"
:
true
,
"_cachedCompiledPatterns"
:
null
,
"_cachedCompiledPatterns"
:
{
"_items"
:
[
{
"hasAnchor"
:
false
,
"source"
:
"
\\\\\\
n"
,
"_anchorCache"
:
null
,
"ruleId"
:
42
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"(
\\
$?
\\
$)[@%<?^+*]"
,
"_anchorCache"
:
null
,
"ruleId"
:
12
,
"hasBackReferences"
:
false
},
{
"hasAnchor"
:
false
,
"source"
:
"
\\
$?
\\
$
\\
("
,
"_anchorCache"
:
null
,
"ruleId"
:
14
,
"hasBackReferences"
:
false
}
],
"_hasAnchors"
:
false
,
"_cached"
:
{
"debugRegExps"
:
[
"
\\\\\\
n"
,
"(
\\
$?
\\
$)[@%<?^+*]"
,
"
\\
$?
\\
$
\\
("
],
"rules"
:
[
42
,
12
,
14
],
"scanner"
:
{}
},
"_anchorCache"
:
{
"A0_G0"
:
null
,
"A0_G1"
:
null
,
"A1_G0"
:
null
,
"A1_G1"
:
null
}
},
"_type"
:
"IncludeOnlyRule"
"_type"
:
"IncludeOnlyRule"
},
},
{
{
...
@@ -1622,7 +2192,7 @@
...
@@ -1622,7 +2192,7 @@
null
,
null
,
{
{
"id"
:
67
,
"id"
:
67
,
"_name"
:
"keyword.control.$1.makefile"
,
"_name"
:
"keyword.control.$1.makefile"
,
"_nameIsCapturing"
:
true
,
"_nameIsCapturing"
:
true
,
"_contentName"
:
null
,
"_contentName"
:
null
,
"_contentNameIsCapturing"
:
false
,
"_contentNameIsCapturing"
:
false
,
...
@@ -2012,4 +2582,4 @@
...
@@ -2012,4 +2582,4 @@
"retokenizeCapturedWithRuleId"
:
0
,
"retokenizeCapturedWithRuleId"
:
0
,
"_type"
:
"CaptureRule"
"_type"
:
"CaptureRule"
}
}
]
]
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录