Show
Ignore:
Timestamp:
08/14/08 07:29:14 (5 months ago)
Author:
Chuck.Esterbrook
Message:

Fix a problem with comment directives regarding commented out code.
thanks:hopscc
Tighten up leading whitespace in comment directive to 0 or 1 chars.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/CobraTokenizer.cobra

    r1574 r1578  
    510510                return tok 
    511511 
    512         var _directiveRE = Regex(r'#\s*\.([\w\-]+)\.', RegexOptions.Compiled) 
     512        var _directiveRE = Regex(r'#\s?\.([\w\-]+)\.($|\s)', RegexOptions.Compiled) 
    513513 
    514514        def onSINGLE_LINE_COMMENT(tok as IToken) as IToken?