Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
obsidiansystems
GHC
Commits
cc789457
Commit
cc789457
authored
Jun 28, 2000
by
simonmar
Browse files
[project @ 2000-06-28 16:57:05 by simonmar]
ignore lines beginning with '#' when looking for {-# OPTIONS #-}
parent
221f85fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/driver/Main.hs
View file @
cc789457
...
...
@@ -945,6 +945,7 @@ getOptionsFromSource file
l
<-
hGetLine
h
case
()
of
()
|
null
l
->
look
h
|
prefixMatch
"#"
l
->
look
h
|
prefixMatch
"{-# LINE"
l
->
look
h
|
Just
(
opts
:
_
)
<-
matchRegex
optionRegex
l
->
return
(
words
opts
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment