fix: fix captures error issues

上级 600921f9
......@@ -208,6 +208,7 @@ mod tests {
use crate::grammar::grammar::Grammar;
use crate::inter::IRawGrammar;
use crate::rule::AbstractRule;
#[test]
fn should_build_json_code() {
......
......@@ -54,7 +54,7 @@ clone_trait_object!(AbstractRule);
pub struct IncludeOnlyRule {
#[serde(flatten)]
pub rule: Rule,
pub captures: ICompilePatternsResult,
pub patterns: Vec<i32>,
}
impl IncludeOnlyRule {
......@@ -73,7 +73,7 @@ impl IncludeOnlyRule {
name,
content_name: None,
},
captures,
patterns: captures.patterns,
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册