Ticket #5 (closed defect: fixed)
Chokes on DOS style newlines in combination with preprocessor comments
| Reported by: | ezyang | Owned by: | benedikt |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | parser | Version: | 0.3.1.1 |
| Keywords: | Cc: | ezyang@… |
Description
Under certain circumstances, DOS style newlines can cause Language.C to become unhappy.
ezyang@javelin:~$ cat min.i
# 1 "foobar.h"
int main() {}
ezyang@javelin:~$ cat test.hs
import Language.C
main = do
(Right r) <- parseCFilePre "min.i"
putStrLn "Ok"
ezyang@javelin:~$ runghc test.hs
Ok
ezyang@javelin:~$ todos min.i
ezyang@javelin:~$ runghc test.hs
test.hs: user error (Pattern match failure in do expression at test.hs:3:4-12)
Change History
Note: See
TracTickets for help on using
tickets.
