Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSzatmary committed Aug 26, 2011
1 parent 38c02c8 commit 0c5dcfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bake/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def load(iterator):
while m:
l = m.group(1) + iterator.next().lstrip()
m = re.search(r'(.*)\\\s*$', l)
# Handle include statements
# Handle include statements: this removes comments at the end of
# include lines
m = re.match(r'\s*include\(\s*([^()]+)\s*\)\s*(#.*)?$', l)
if m:
lines.extend(load_file(m.group(1)))
Expand Down

0 comments on commit 0c5dcfd

Please sign in to comment.