summaryrefslogtreecommitdiffstats
path: root/extract-copyright-comments
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-07 15:23:52 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-07 15:23:52 (EST)
commit1dca851bc95f3e32ba9e6e9247a25e0bac08a716 (patch)
tree7ddc8dfeafdf4fc8da10bad58f0feb99d247061d /extract-copyright-comments
parent2386a2b6e919c5850df2e8efad78be7ab86a56b7 (diff)
extract-copyright-comments: Handle EOF in quote
Surprise: lex source code doesn't parse well as C source code.
Diffstat (limited to 'extract-copyright-comments')
-rwxr-xr-xextract-copyright-comments6
1 files changed, 6 insertions, 0 deletions
diff --git a/extract-copyright-comments b/extract-copyright-comments
index 9cbf6bf..12aafa5 100755
--- a/extract-copyright-comments
+++ b/extract-copyright-comments
@@ -179,6 +179,12 @@ extract()
# handle escaped quotes.
getc
;;
+ '')
+ printf "Warning: $(:
+ )Unterminated$(:
+ ) quote\\n" 1>&2
+ break
+ ;;
esac
done
;;