diff options
author | panne <unknown> | 2003-09-08 13:31:35 +0000 |
---|---|---|
committer | panne <unknown> | 2003-09-08 13:31:35 +0000 |
commit | 5cbc33c27b1f762f79682117836350f6c2eae23f (patch) | |
tree | 885ca52a720a972c8b655a7e91dc168f0547c4da /ghc/compiler/parser/Lexer.x | |
parent | 500c76a84ffa6f057ff731f1d556792cd82643ef (diff) | |
download | haskell-5cbc33c27b1f762f79682117836350f6c2eae23f.tar.gz |
[project @ 2003-09-08 13:31:35 by panne]
Handle lines like (note the blank!):
# 1 "<command line>"
Diffstat (limited to 'ghc/compiler/parser/Lexer.x')
-rw-r--r-- | ghc/compiler/parser/Lexer.x | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/compiler/parser/Lexer.x b/ghc/compiler/parser/Lexer.x index 922860efb3..0f2e23e42f 100644 --- a/ghc/compiler/parser/Lexer.x +++ b/ghc/compiler/parser/Lexer.x @@ -151,7 +151,7 @@ $white_no_nl+ ; -- single-line line pragmas, of the form -- # <line> "<file>" <extra-stuff> \n <line_prag1> $digit+ { set_line line_prag1a } -<line_prag1a> \" $graphic* \" { set_file line_prag1b } +<line_prag1a> \" [$graphic \ ]* \" { set_file line_prag1b } <line_prag1b> .* { pop } -- Haskell-style line pragmas, of the form |