about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-07 21:21:26 -0500
committerCase Duckworth2022-07-07 21:21:26 -0500
commite80960adf90e058d836006e5de33cea4761b8a8b (patch)
tree58fde2eb69d09eede888e9d14fee60bd36a13047
parentUpdate Makefile (diff)
downloadlicensor-e80960adf90e058d836006e5de33cea4761b8a8b.tar.gz
licensor-e80960adf90e058d836006e5de33cea4761b8a8b.zip
Take care of nested <<...>> tags
I still have a good amount to do with the templates.
-rwxr-xr-xlicensor7
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