diff options
author | Case Duckworth | 2022-07-07 21:21:26 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-07 21:21:26 -0500 |
commit | e80960adf90e058d836006e5de33cea4761b8a8b (patch) | |
tree | 58fde2eb69d09eede888e9d14fee60bd36a13047 | |
parent | Update Makefile (diff) | |
download | licensor-e80960adf90e058d836006e5de33cea4761b8a8b.tar.gz licensor-e80960adf90e058d836006e5de33cea4761b8a8b.zip |
Take care of nested <<...>> tags
I still have a good amount to do with the templates.
-rwxr-xr-x | licensor | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/licensor b/licensor index 88fcee4..b5795ae 100755 --- a/licensor +++ b/licensor | |||
@@ -200,6 +200,13 @@ END { | |||
200 | closed = 0 | 200 | closed = 0 |
201 | while (! closed) { | 201 | while (! closed) { |
202 | tok = tok b[c++] | 202 | tok = tok b[c++] |
203 | if (b[c] == "<" && b[c + 1] == "<") { | ||
204 | closed-- | ||
205 | c += 2 | ||
206 | if (closed < 0) { | ||
207 | closed = 0 | ||
208 | } | ||
209 | } | ||
203 | if (b[c] == ">" && b[c + 1] == ">") { | 210 | if (b[c] == ">" && b[c + 1] == ">") { |
204 | closed++ | 211 | closed++ |
205 | c += 2 | 212 | c += 2 |