Changeset 713

Show
Ignore:
Timestamp:
10/19/10 16:53:52 (19 months ago)
Author:
mgalloy
Message:

Fix for parser bug (ticket #67) which did not recognize comment headers immediately after pro/function declaration.

Files:
1 modified

Legend:

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

    r701 r713  
    389389      ; might be continued more 
    390390      headerContinued = lastToken eq '$' ? 1B : 0B 
    391       if (~headerContinued && currentComments->count() gt 0) then begin 
    392         self->_parseRoutineComments, routine, currentComments->get(/all), $ 
    393                                      format=format, markup=markup 
     391      if (~headerContinued) then begin 
     392        if (currentComments->count() gt 0) then begin 
     393          self->_parseRoutineComments, routine, currentComments->get(/all), $ 
     394                                       format=format, markup=markup 
    394395         
    395         currentComments->remove, /all 
     396          currentComments->remove, /all 
     397        endif 
     398         
    396399        justFinishedHeader = 1B 
    397400      endif