Changeset 982
- Timestamp:
- Jun 27, 2012 2:33:01 PM (11 years ago)
- Location:
- specdomain/trunk/src/specdomain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/trunk/src/specdomain/macros/cdef-examples.mac
r966 r982 45 45 cdef("user_waitmove","\nwait(1);\n","waitmove_hack","0x20") 46 46 47 # it's possible to embed cdef in a block like this, like in standard.mac 48 if DECISION==1{cdef("user_offsim", "getE;", "embedded")} 49 47 50 """ end of $Id$ """ -
specdomain/trunk/src/specdomain/sphinxcontrib/specmacrofileparser.py
r981 r982 193 193 self.findings.append(dict(m)) 194 194 return True 195 195 196 extended_comment_start_sig_re = re.compile(string_start 196 197 + non_greedy_whitespace -
specdomain/trunk/src/specdomain/test/tester4.py
r979 r982 12 12 import os 13 13 14 # TODO: consider multiline declaration signtures 15 # This test module only considers single line declarations 14 16 15 17 spec_macro_declaration_match_re = re.compile( … … 23 25 + r'$' # line end 24 26 ) 27 25 28 spec_cdef_declaration_match_re = re.compile( 26 29 r'^' # line start 27 + r' \s*?' # optional blank space30 + r'.*?' # optional any kind of preceding stuff, was \s*? (optional blank space) 28 31 + r'(cdef)' # 0: cdef 29 32 + r'\(' # opening parenthesis 30 33 + r'(.*?)' # 1: args (anything between the parentheses) 31 34 + r'\)' # closing parenthesis 32 + r' \s*?'# optional blank space35 + r'.*?' # optional blank space 33 36 + r'(#.*?)?' # 2: optional comment 34 37 + r'$' # line end … … 59 62 } 60 63 64 for name, test in tests.items(): 65 print "%10s %s" % (name, test.pattern) 66 61 67 for f in sorted(os.listdir(TEST_DIR)): 62 68 if f.endswith('.mac'):
Note: See TracChangeset
for help on using the changeset viewer.