Changeset 12645 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
08/24/06 09:16:19 (2 years ago)
Author:
lwall
Message:

Handle aBOMinations like the one currently in t/subroutines/param_signature.t
(Also handle Unicode whitespace in general, while we're at it...)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r12473 r12645  
    596596    return () 
    597597         
     598-- XXX this should depend on real Unicode definitions 
     599-- XXX (could probably be more efficient too, since oneOf probably scans) 
    598600simpleSpace = 
    599     skipMany1 (satisfy isSpace)     
     601    skipMany1 $ oneOf " \t\n\f\r\x0085\x00A0\x1680\x180E\x2000\x2001\x2002\x2003\x2004\x2005\x2006\x2007\x2008\x2009\x200A\x2028\x2029\x202F\x205F\x3000\xFEFF" 
     602 
    600603     
    601604-- XXX - nesting