bug: add unlog for element

上级 2f323bc6
......@@ -230,6 +230,8 @@ impl Grammar {
anchor_position = popped.anchor_pos;
} else {
println!("_popped_rule {:?}", _popped_rule.clone());
_stop = true;
return Some(stack.clone());
}
} else {
let rule = self.get_rule(matched_rule_id);
......
......@@ -26,8 +26,7 @@ const registry = new vsctm.Registry({
});
registry.loadGrammar('source.makefile').then(grammar => {
const text = `hellomake: $(OBJ)
\t$(CC) -o $@ $^ $(CFLAGS)`.split("\n");
const text = `%.o: %.c $(DEPS)`.split("\n");
let ruleStack = vsctm.INITIAL;
for (let i = 0; i < text.length; i++) {
const line = text[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册