From 1dca851bc95f3e32ba9e6e9247a25e0bac08a716 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 07 Jan 2021 15:23:52 -0500 Subject: extract-copyright-comments: Handle EOF in quote Surprise: lex source code doesn't parse well as C source code. --- 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 ;; -- cgit v0.9.1