summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/htagml.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/htagml.c b/bin/htagml.c
index 6f2de596..670b74dd 100644
--- a/bin/htagml.c
+++ b/bin/htagml.c
@@ -90,12 +90,13 @@ int main(int argc, char *argv[]) {
 	size_t bufCap = 0;
 	while (0 < getline(&buf, &bufCap, file)) {
 		char *line = buf;
-		char *tag = strsep(&line, "\t ");
-		char *file = strsep(&line, "\t ");
+		char *tag = strsep(&line, "\t");
+		char *file = strsep(&line, "\t");
 		char *search = strsep(&line, "\n");
 		if (!tag || !file || !search) errx(EX_DATAERR, "malformed tags file");
 		if (search[0] != '/' || search[strlen(search)-1] != '/') {
-			errx(EX_DATAERR, "search is not forward regex: %s", search);
+			warnx("tag %s definition is not a forward search: %s", tag, search);
+			continue;
 		}
 		search++;
 		search[strlen(search)-1] = '\0';
2019-07-29Add KindredJune McEnroe 2019-07-27Clean up home filesJune McEnroe 2019-07-27Fix shell script style in ~/.local/binJune McEnroe 2019-07-27Shell script style passJune McEnroe 2019-07-27Add c11.pdfJune McEnroe 2019-07-27Move pdf script to MakefileJune McEnroe 2019-07-27Update macOS neovim to 0.3.8June McEnroe 2019-07-27Rewrite port makefiles consistentlyJune McEnroe 2019-07-27Rewrite Makefile once more with more organizationJune McEnroe 2019-07-27Reference png.h in bin.7June McEnroe 2019-07-27Revert "Use scheme to style HTMLs"June McEnroe 2019-07-27Remove scheme text linkJune McEnroe 2019-07-26Update Dark.terminalJune McEnroe 2019-07-26Lighten dark whiteJune McEnroe 2019-07-25Add png.3 man pageJune McEnroe 2019-07-25Use scheme to style HTMLsJune McEnroe 2019-07-25Don't match comments in strings in makeJune McEnroe 2019-07-25Generate index.html with links from bin.7June McEnroe 2019-07-24Warn when date has changedJune McEnroe 2019-07-24Add whenJune McEnroe 2019-07-24Remove histedit from bitJune McEnroe