Skip to content

Commit 9f6f3c6

Browse files
committed
preprocess recursively into #include's; fixes #1984
1 parent addca15 commit 9f6f3c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parseTools.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ function preprocess(text) {
4949
showStack.push(ident in this && this[ident] > 0);
5050
}
5151
} else if (line[2] == 'n') { // include
52-
ret += '\n' + read(line.substr(line.indexOf(' ')+1)) + '\n'
52+
var included = read(line.substr(line.indexOf(' ')+1));
53+
ret += '\n' + preprocess(included) + '\n'
5354
}
5455
} else if (line[2] == 'l') { // else
5556
showStack.push(!showStack.pop());

0 commit comments

Comments
 (0)