Changeset 9867 for src/Pugs/Lexer.hs

Show
Ignore:
Timestamp:
04/09/06 07:55:42 (3 years ago)
Author:
audreyt
svk:copy_cache_prev:
13015
Message:

* Support for multiline comments (currently only bracket as delimiters):

say .#[

this is
multiline
comment

] "Hello";

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Lexer.hs

    r8907 r9867  
    3737perl6Def  :: LanguageDef st 
    3838perl6Def  = javaStyle 
    39           { P.commentStart   = [] -- "=pod" 
    40           , P.commentEnd     = [] -- "=cut" 
     39          { P.commentStart   = ".#[" 
     40          , P.commentEnd     = "]" 
    4141          , P.commentLine    = "#" 
    4242          , P.nestedComments = False