summaryrefslogtreecommitdiff
path: root/ghc/compiler/parser/Lexer.x
diff options
context:
space:
mode:
authorpanne <unknown>2003-09-08 13:31:35 +0000
committerpanne <unknown>2003-09-08 13:31:35 +0000
commit5cbc33c27b1f762f79682117836350f6c2eae23f (patch)
tree885ca52a720a972c8b655a7e91dc168f0547c4da /ghc/compiler/parser/Lexer.x
parent500c76a84ffa6f057ff731f1d556792cd82643ef (diff)
downloadhaskell-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.x2
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