diff --git a/README.md b/README.md index f92473f7f1513e06476eec62bf2ad4cba5a63e6c..b2b8477bb69f6c2f5524c21f8348d54cf1173b13 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Todo: - [ ] rewrite VSCode-textmate with Rust - [ ] makefile - [ ] json + - [ ] external - [ ] languages main support - [ ] html - [ ] lua diff --git a/scie-grammar/src/grammar/stack_element.rs b/scie-grammar/src/grammar/stack_element.rs index b649c4ec41fead819115f07b22d292dc9da2352b..98247a83c701e4251c871bf1f98ea9ab863ed024 100644 --- a/scie-grammar/src/grammar/stack_element.rs +++ b/scie-grammar/src/grammar/stack_element.rs @@ -112,24 +112,22 @@ impl StackElement { } pub fn reset(&mut self) { - let mut has_parent = true; if let None = self.parent { - has_parent = false; self.enter_pos = -1; self.anchor_pos = -1; } - while has_parent { - self.enter_pos = -1; - self.anchor_pos = -1; - - if let None = self.parent { - has_parent = false; - } else { - // todo: check parent not null - // self = self.parent.unwrap().borrow_mut(); - self.parent = None; - } - } + // while has_parent { + // self.enter_pos = -1; + // self.anchor_pos = -1; + // + // if let None = self.parent { + // has_parent = false; + // } else { + // // todo: check parent not null + // // self = self.parent.unwrap().borrow_mut(); + // self.parent = None; + // } + // } } }