- Timestamp:
- Oct 1, 2012 1:08:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/trunk/src/specdomain/sphinxcontrib/specmacrofileparser.py
r1071 r1124 37 37 extended_comment_marker = r'\"{3}' 38 38 extended_comment_match = r'(' + extended_comment_marker + r')' 39 macro_name = r' [a-zA-Z_][\w_]*'39 macro_name = r'\w+' 40 40 macro_name_match = r'(' + macro_name + r')' 41 41 arglist_match = r'(' + match_all + r')' … … 94 94 + arg_list_match # 3: optional arguments 95 95 + non_greedy_whitespace 96 + '\''# start body section96 + r"[\\']+" # start body section 97 97 + non_greedy_filler_match # 4: body 98 + '\''# end body section98 + r"[\\']+" # end body section 99 99 + non_greedy_whitespace 100 100 + r'(#.*?)?' # 5: optional comment … … 201 201 'local': self.handle_other, 202 202 'rdef': self.handle_other, 203 'function rdef': self.handle_def, 203 204 } 204 205 process_first_list = ('descriptive comment', ) … … 222 223 for item in db[linenumber]: 223 224 if item['objtype'] not in process_first_list: 225 if 'function rdef' == item['objtype']: 226 pass 224 227 handler_method[item['objtype']](item, db) 225 228 … … 423 426 if m is not None: 424 427 objtype = 'function ' + objtype 428 if 'function rdef' == objtype: 429 pass # TODO: Should we do something special here? 425 430 args = m.group(1) 426 431 d = {
Note: See TracChangeset
for help on using the changeset viewer.