Commit 47a9879e authored by Stefan Behnel's avatar Stefan Behnel

fix Cython code context comments in C code when annotation is enables

parent 1ce5c64d
......@@ -39,9 +39,8 @@ class AnnotationCCodeWriter(CCodeWriter):
self.annotation_buffer.write(s)
def mark_pos(self, pos):
# if pos is not None:
# CCodeWriter.mark_pos(self, pos)
# return
if pos is not None:
CCodeWriter.mark_pos(self, pos)
if self.last_pos:
code = self.code.get(self.last_pos[1], "")
self.code[self.last_pos[1]] = code + self.annotation_buffer.getvalue()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment