Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7c0ef81a
Commit
7c0ef81a
authored
Dec 06, 1999
by
sewardj
Browse files
[project @ 1999-12-06 16:20:26 by sewardj]
Only detect (# and #) as special tokens when parsing interface files.
parent
d5b9dfff
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/interpreter/input.c
View file @
7c0ef81a
...
...
@@ -9,8 +9,8 @@
* included in the distribution.
*
* $RCSfile: input.c,v $
* $Revision: 1.1
6
$
* $Date: 1999/12/0
3
1
2:39:39
$
* $Revision: 1.1
7
$
* $Date: 1999/12/0
6
1
6:20:26
$
* ------------------------------------------------------------------------*/
#include "prelude.h"
...
...
@@ -1400,8 +1400,10 @@ static Int local yylex() { /* Read next input token ... */
* Now try to identify token type:
* --------------------------------------------------------------------*/
if
(
c0
==
'('
&&
c1
==
'#'
)
{
skip
();
skip
();
return
UTL
;
};
if
(
c0
==
'#'
&&
c1
==
')'
)
{
skip
();
skip
();
return
UTR
;
};
if
(
readingInterface
)
{
if
(
c0
==
'('
&&
c1
==
'#'
)
{
skip
();
skip
();
return
UTL
;
};
if
(
c0
==
'#'
&&
c1
==
')'
)
{
skip
();
skip
();
return
UTR
;
};
}
switch
(
c0
)
{
case
EOF
:
return
0
;
/* End of file/input */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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