Changeset 78

Show
Ignore:
Timestamp:
09/26/07 14:18:05 (6 years ago)
Author:
mgalloy
Message:

Fixed bug of incorrect labelling of some files with having a main-level program.

Files:
1 modified

Legend:

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

    r76 r78  
    218218    lastToken = strlowcase(tokens[nTokens - 1L]) 
    219219     
    220     ; if ends with "begin" then codeLevel++ 
     220    ; if starting begin/end block (switch/case implicitly start a bloack) then  
     221    ; increase code level 
    221222    if (lastToken eq 'begin' && ~insideComment) then codeLevel++ 
     223    if (firstToken eq 'case' || firstToken eq 'switch') then codeLevel++ 
    222224     
    223225    ; if starts with end* then codeLevel--