Show
Ignore:
Timestamp:
06/19/08 19:10:01 (4 years ago)
Author:
mgalloy
Message:

Changes from IDLdoc 3.1.1 release.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/IDLDOC_3_1/idldoc/src/parser/docparprofileparser__define.pro

    r492 r509  
    324324    ; token delimiters are: space, tab, comma, and colon 
    325325    delims = ' ' + string(9B) + ',:' 
    326     tokens = strsplit(self->_stripComments(command), delims, /extract, count=nTokens) 
     326    cmd = self->_stripComments(command) 
     327    tokens = strsplit(cmd, delims, /extract, count=nTokens) 
    327328    if (nTokens eq 0) then begin 
    328329      if (justFinishedComment eq 2 && currentComments->count() gt 0) then begin 
     
    393394      file->addRoutine, routine 
    394395       
    395       routine->setProperty, name=(strsplit(tokens[1], ',', /extract))[0] 
     396      ; if there is a routine header with a :: in it, then it's a method name 
     397      routineName = strpos(cmd, '::') eq -1 ? tokens[1] : strjoin(tokens[1:2], '::') 
     398      routine->setProperty, name=routineName 
     399       
    396400      formatParser->checkForClass, routine 
    397401      if (strpos(tokens[1], '::') ne -1) then routine->setProperty, is_method=1B