aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index aa491e6..2244198 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -543,6 +543,18 @@ impl<'a> Compiler<'a> {
fn eat(&mut self) -> Token {
let t = self.peek();
self.curr += 1;
+ match t {
+ Token::GitConflictBegin => {
+ self.curr -= 1;
+ let start = self.line();
+ self.curr += 1;
+ while !matches!(self.eat(), Token::GitConflictEnd) {}
+ self.panic = false;
+ self.error_on_line(ErrorKind::GitConflictError(start, self.line()), start, None);
+ self.panic = true;
+ }
+ _ => {}
+ }
t
}