diff options
author | Patrick 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) |
commit | 1dca851bc95f3e32ba9e6e9247a25e0bac08a716 (patch) | |
tree | 7ddc8dfeafdf4fc8da10bad58f0feb99d247061d | |
parent | 2386a2b6e919c5850df2e8efad78be7ab86a56b7 (diff) |
extract-copyright-comments: Handle EOF in quote
Surprise: lex source code doesn't parse well as C source code.
-rwxr-xr-x | extract-copyright-comments | 6 |
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 ;; |