projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9568347
)
Fix a bug in alternative layout rule
author
Ian Lynagh
<igloo@earth.li>
Wed, 25 Nov 2009 23:19:01 +0000
(23:19 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Wed, 25 Nov 2009 23:19:01 +0000
(23:19 +0000)
compiler/parser/Lexer.x
patch
|
blob
|
history
diff --git
a/compiler/parser/Lexer.x
b/compiler/parser/Lexer.x
index
1bb8a63
..
09b58dd
100644
(file)
--- a/
compiler/parser/Lexer.x
+++ b/
compiler/parser/Lexer.x
@@
-2018,6
+2018,7
@@
alternativeLayoutRuleToken t
return (L thisLoc ITsemi)
| newLine && thisCol < col ->
do setALRContext ls
+ setNextToken t
-- Note that we use lastLoc, as we may need to close
-- more layouts, or give a semicolon
return (L lastLoc ITccurly)