Changeset 14105 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
10/09/06 17:26:09 (2 years ago)
Author:
audreyt
Message:

r14977@T: audreyt | 2006-10-09 15:19:34 +0800

  • Pugs.Lexer: Stylistic tweak.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r14085 r14105  
    205205    let lastCh = last s 
    206206        ahead  = if isWordAny lastCh then aheadWord else aheadSym 
    207     choice [ lookAhead (satisfy (ahead lastCh)), eof >> return ' ' ] 
     207    lookAhead (satisfy (ahead lastCh)) <|> (eof >> return ' ') 
    208208    whiteSpace 
    209209    return rv