|
@@ -213,11 +213,8 @@ def extract():
|
213
|
213
|
elif cpos2 != -1 and (cpos2 < cpos1 or cpos1 == -1):
|
214
|
214
|
cpos = cpos2
|
215
|
215
|
|
216
|
|
- # Expire end-of-line options after first use
|
217
|
|
- if cline.startswith(':'): eol_options = True
|
218
|
|
-
|
219
|
216
|
# Comment after a define may be continued on the following lines
|
220
|
|
- if state == Parse.NORMAL and defmatch != None and cpos > 10:
|
|
217
|
+ if defmatch != None and cpos > 10:
|
221
|
218
|
state = Parse.EOL_COMMENT
|
222
|
219
|
comment_buff = []
|
223
|
220
|
|
|
@@ -225,9 +222,12 @@ def extract():
|
225
|
222
|
if cpos != -1:
|
226
|
223
|
cline, line = line[cpos+2:].strip(), line[:cpos].strip()
|
227
|
224
|
|
228
|
|
- # Strip leading '*' from block comments
|
229
|
225
|
if state == Parse.BLOCK_COMMENT:
|
|
226
|
+ # Strip leading '*' from block comments
|
230
|
227
|
if cline.startswith('*'): cline = cline[1:].strip()
|
|
228
|
+ else:
|
|
229
|
+ # Expire end-of-line options after first use
|
|
230
|
+ if cline.startswith(':'): eol_options = True
|
231
|
231
|
|
232
|
232
|
# Buffer a non-empty comment start
|
233
|
233
|
if cline != '':
|