Changeset 1124
- Timestamp:
- Oct 1, 2012 1:08:46 PM (10 years ago)
- Location:
- specdomain/trunk/src/specdomain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/trunk/src/specdomain/LICENSE
r998 r1124 1 1 Copyright (c) 2011-2012, UChicago Argonne, LLC 2 2 Operator of Argonne National Laboratory 3 3 All Rights Reserved 4 4 5 5 specdomain 6 7 BCDA, Advanced Photon Source, Argonne National Laboratory8 6 9 7 … … 40 38 41 39 Neither the United States GOVERNMENT, nor the United States Department 42 of Energy, NOR uchicago argonne, LLC, nor any of their employees, makes40 of Energy, NOR UChicago Argonne, LLC, nor any of their employees, makes 43 41 any warranty, express or implied, or assumes any legal liability or 44 42 responsibility for the accuracy, completeness, or usefulness of any -
specdomain/trunk/src/specdomain/doc/style_guide.rst
r1113 r1124 25 25 throws readers out of their rhythm when they go to read it. Avoid this. 26 26 27 With these words in mind, this style guides documents the conventions set forth28 t o use for SPEC macros at the APS.27 With these words in mind, this SPEC Documentation Style Guide documents 28 the conventions set forth to use for SPEC macros at the APS. 29 29 30 30 The concept of docstrings … … 178 178 It is recommended to build up this section as a definition list. The headings 179 179 for each item are CAPITALIZED and end with a colon. The content under each of 180 these items should be indented one level. This results in a more l eightweight180 these items should be indented one level. This results in a more lightweight 181 181 layout, and prevents cluttering the tables of content with too many 182 182 subsections. 183 183 184 The following items should be included, prefer rably in this order:184 The following items should be included, preferably in this order: 185 185 186 186 * AUTHOR(S): … … 193 193 * KNOWN BUGS: 194 194 195 See the below examplefor more details on each of these items.195 See the example below for more details on each of these items. 196 196 197 197 … … 278 278 279 279 Copyright (c) 2010-|current_year|, UChicago Argonne, LLC 280 280 Operator of Argonne National Laboratory 281 281 All Rights Reserved 282 282 283 283 APS SPEC macros 284 285 APS SPEC development team,286 X-ray Science Division and APS Engineering Support Division,287 Argonne National Laboratory288 284 289 285 LICENSE:: … … 321 317 322 318 Neither the United States GOVERNMENT, nor the United States Department 323 of Energy, NOR uchicago argonne, LLC, nor any of their employees, makes319 of Energy, NOR UChicago Argonne, LLC, nor any of their employees, makes 324 320 any warranty, express or implied, or assumes any legal liability or 325 321 responsibility for the accuracy, completeness, or usefulness of any … … 389 385 indicate that they should be replaced by actual values in the macro call. 390 386 Optional arguments are additionally enclosed in square brackets (``[]``). 391 The actual USAGE syntax should appear as pre formatted text, and each input387 The actual USAGE syntax should appear as pre-formatted text, and each input 392 388 line should start with a "``>``"-symbol to represent the SPEC command line 393 389 prompt:: -
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.