Show
Ignore:
Timestamp:
03/09/10 09:27:06 (2 years ago)
Author:
mgalloy
Message:

Fix for bug reported by Steven C. Martin: comment header inside routine ignored when the first line after the header opens a BEGIN-END block.

Files:
1 modified

Legend:

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

    r614 r637  
    345345      continue           
    346346    endif 
    347      
     347 
     348    ; "interior" comment 
     349    if (~headerContinued $ 
     350          && justFinishedComment eq 2 $ 
     351          && codeLevel eq 1 $ 
     352          && currentComments->count() gt 0) then begin 
     353      self->_parseRoutineComments, routine, currentComments->get(/all), $ 
     354                                   format=format, markup=markup   
     355      currentComments->remove, /all   
     356    endif 
     357         
    348358    firstToken = strlowcase(tokens[0]) 
    349359    lastToken = strlowcase(tokens[nTokens - 1L])    
     
    416426    endif 
    417427     
    418     ; "interior" comment 
    419     if (~headerContinued && justFinishedComment eq 2 && codeLevel eq 1 && currentComments->count() gt 0) then begin 
    420       self->_parseRoutineComments, routine, currentComments->get(/all), $ 
    421                                    format=format, markup=markup   
    422       currentComments->remove, /all   
    423     endif 
    424      
    425428    justFinishedComment-- 
    426429  endwhile