projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c4bd4a
)
Don't restrict filenames in line pragmas to printable characters; fixes #4207
author
Ian Lynagh
<igloo@earth.li>
Thu, 5 Aug 2010 13:50:11 +0000
(13:50 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Thu, 5 Aug 2010 13:50:11 +0000
(13:50 +0000)
"printable" is ASCII-only, whereas in other locales we can get things like
# 1 "<lĂnea-de-orden>"
compiler/cmm/CmmLex.x
patch
|
blob
|
history
diff --git
a/compiler/cmm/CmmLex.x
b/compiler/cmm/CmmLex.x
index
1963479
..
a5defb6
100644
(file)
--- a/
compiler/cmm/CmmLex.x
+++ b/
compiler/cmm/CmmLex.x
@@
-74,7
+74,7
@@
$white_no_nl+ ;
-- single-line line pragmas, of the form
-- # <line> "<file>" <extra-stuff> \n
<line_prag> $digit+ { setLine line_prag1 }
-<line_prag1> \" ($printable # \")* \" { setFile line_prag2 }
+<line_prag1> \" [^\"]* \" { setFile line_prag2 }
<line_prag2> .* { pop }
<0> {