[gnoduino] Bug 731906 - lastInclude regexp misses slash character



commit b4948f67a86049e674cfba2b7523e89785123202
Author: JM. Philippe <jean-michel philippe doudoulinux org>
Date:   Thu Oct 23 15:42:42 2014 +0200

    Bug 731906 - lastInclude regexp misses slash character

 src/preproc.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/preproc.py b/src/preproc.py
index fd47641..7b55222 100644
--- a/src/preproc.py
+++ b/src/preproc.py
@@ -37,7 +37,7 @@ def firstStatement(instr):
        return m.end(0)
 
 def lastInclude(instr):
-       m = re.finditer(r"^#include\s+[\w+\".<>\-]+", instr, re.M)
+       m = re.finditer(r"^#include\s+[\w+\".<>\-/]+", instr, re.M)
        try:
                return max(enumerate(m))[1].end()
        except:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]