correct line numbers when handling backslash-continuation
authorPhil Blundell <philb@gnu.org>
Mon, 17 May 2004 19:26:16 +0000 (19:26 +0000)
committerPhil Blundell <philb@gnu.org>
Mon, 17 May 2004 19:26:16 +0000 (19:26 +0000)
bin/oe/parse/OEHandler.py

index 76635e8..4877990 100644 (file)
@@ -110,6 +110,7 @@ def handle(fn, d = {}, include = 0):
         if not w: continue      # skip empty lines
         s = s.rstrip()
         while s[-1] == '\\':
+            lineno = lineno + 1
             s2 = f.readline()[:-1].strip()
             s = s[:-1] + s2
         feeder(lineno, s, fn, d)