1
0
Fork 0

accept blanks before auto-code blocks, so we can have indend blocks in markdown.

This commit is contained in:
Willi Goesgens 2015-08-05 10:22:26 +02:00
parent b4675448c2
commit c6521c0b92
1 changed files with 4 additions and 4 deletions

View File

@ -295,8 +295,8 @@ allErrors = err;
################################################################################
### @brief Try to match the start of a command section
################################################################################
regularStartLine = re.compile(r'^(/// )?@EXAMPLE_ARANGOSH_OUTPUT{([^}]*)}')
runLine = re.compile(r'^(/// )?@EXAMPLE_ARANGOSH_RUN{([^}]*)}')
regularStartLine = re.compile(r'^(/// )? *@EXAMPLE_ARANGOSH_OUTPUT{([^}]*)}')
runLine = re.compile(r'^(/// )? *@EXAMPLE_ARANGOSH_RUN{([^}]*)}')
def matchStartLine(line, filename):
global regularStartLine, errorStartLine, runLine, FilterForTestcase
@ -342,7 +342,7 @@ def matchStartLine(line, filename):
# Not found, remain in STATE_BEGIN
return ("", STATE_BEGIN)
endExample = re.compile(r'^(/// )?@END_EXAMPLE_')
endExample = re.compile(r'^(/// )? *@END_EXAMPLE_')
#r5 = re.compile(r'^ +')
################################################################################
@ -576,7 +576,7 @@ def loopDirectories():
if os.path.isdir(filename):
for root, dirs, files in os.walk(filename):
for file in files:
if (file.endswith(".mdpp") or file.endswith(".js") or file.endswith(".cpp")) and not file.endswith("ahuacatl.js"):
if (file.endswith(".mdpp") or file.endswith(".js") or file.endswith(".cpp")):
filenames.append(os.path.join(root, file))
else:
filenames.append(filename)