Changeset 701 for trunk

Show
Ignore:
Timestamp:
09/12/10 22:20:32 (21 months ago)
Author:
mgalloy
Message:

Adding some comments to difficult docparprofileparser::_parseLines routine. Need to fix this routine to allow comment headers after routine header declaration.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/parser/docparprofileparser__define.pro

    r638 r701  
    289289  formatParser->startNewFile 
    290290   
    291   insideComment = 0B 
    292   justFinishedComment = 0L   ; 0, 1 (in header), 2 (just finished) 
    293   justFinishedHeader = 0B 
    294   headerContinued = 0B 
    295   codeLevel = 0L 
     291  insideComment = 0B         ; inside comment header 
     292  justFinishedComment = 0L   ; 0 (not in a comment), 1 (in header), 2 (just finished) 
     293  justFinishedHeader = 0B    ; just finished pro/function declaration header 
     294  headerContinued = 0B       ; in pro/function declaration header 
     295  codeLevel = 0L             ; level of "indention", i.e., begin-end blocks 
    296296  routineLineStart = 0 
    297297  currentComments = obj_new('MGcoArrayList', type=7, block_size=20) 
     
    329329    cmd = self->_stripComments(command) 
    330330    tokens = strsplit(cmd, delims, /extract, count=nTokens) 
     331     
     332    ; handle blank line (w/ possible comments) 
    331333    if (nTokens eq 0) then begin 
    332334      if (justFinishedComment eq 2 && currentComments->count() gt 0) then begin