summary refs log tree commit diff
path: root/pkgs/development/tools/parsing/alex/adapt-crazy-perl-regex-for-cpp-4.8.0.patch
blob: 1e5942bfbefb924b0d55a56a903f3324c8ff9df6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ubr alex-2.3.5-orig/Setup.lhs alex-2.3.5/Setup.lhs
--- alex-2.3.5-orig/Setup.lhs	2013-04-19 12:00:15.812606335 +0000
+++ alex-2.3.5/Setup.lhs	2013-04-19 12:05:41.635450321 +0000
@@ -25,7 +25,7 @@
 -- hack to turn cpp-style '# 27 "GenericTemplate.hs"' into 
 -- '{-# LINE 27 "GenericTemplate.hs" #-}'.
 crazy_perl_regexp =
- "s/^#\\s+(\\d+)\\s+(\"[^\"]*\")/{-# LINE \\1 \\2 #-}/g;s/\\$(Id:.*)\\$/\\1/g"
+ "s/^#\\s+(\\d+)\\s+(\"[^\"]*\").*/{-# LINE \\1 \\2 #-}/g;s/\\$(Id:.*)\\$/\\1/g"
 
 myPostBuild _ flags _ lbi = do
   let runProgram p = rawSystemProgramConf (buildVerbose flags) p (withPrograms lbi)