fix: fix origin repository not clone issue

上级 25294e13
......@@ -65,7 +65,10 @@ impl Grammar {
prev_state: Option<StackElement>,
emit_binary_tokens: bool,
) {
if self.root_id == -1 {}
if self.root_id == -1 {
let repository = self.grammar.repository.clone().unwrap();
RuleFactory::get_compiled_rule_id(repository);
}
}
pub fn tokenize_line(&self, line_text: String, prev_state: Option<StackElement>) {
......
use serde::de::{Error, Unexpected};
use serde::{de, Deserialize, Deserializer, Serialize};
use std::collections::HashMap;
......
......@@ -3,7 +3,9 @@ use crate::inter::IRawRepository;
pub struct RuleFactory {}
impl RuleFactory {
pub fn get_compiled_rule_id(repository: IRawRepository) {}
pub fn get_compiled_rule_id(repository: IRawRepository) {
}
pub fn create_capture_rule() {}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册