Commit e20d2427 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-09-20 13:32:15 by simonmar]

Ignore RULES pragmas when -fglasgow-exts is off.
parent b16004bf
......@@ -440,6 +440,9 @@ lexer cont buf s@(PState{
let lexeme = mkFastString -- ToDo: too slow
(map toUpper (lexemeToString buf2)) in
case lookupUFM pragmaKeywordsFM lexeme of
-- ignore RULES pragmas when -fglasgow-exts is off
Just ITrules_prag | not (flag glaexts) ->
skip_to_end (stepOnBy# buf 2#) s'
Just ITline_prag ->
line_prag skip_to_end buf2 s'
Just other -> is_a_token
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment