summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-12 20:34:27 -0500
committerJune McEnroe <june@causal.agency>2021-01-12 20:34:27 -0500
commit355a9768b1b62c58d5c2d943159b1d470adf1e0a (patch)
treea8dd5f81714350de95c98378211976cea21ac06e
parentProcess htagml file line by line (diff)
downloadsrc-355a9768b1b62c58d5c2d943159b1d470adf1e0a.tar.gz
src-355a9768b1b62c58d5c2d943159b1d470adf1e0a.zip
Prevent matching the same tag twice
-rw-r--r--bin/htagml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/htagml.c b/bin/htagml.c
index c1e75dd9..b72b5e39 100644
--- a/bin/htagml.c
+++ b/bin/htagml.c
@@ -128,6 +128,7 @@ int main(int argc, char *argv[]) {
 				if (regexec(&tags[i].regex, buf, 0, NULL, 0)) continue;
 			}
 			tag = &tags[i];
+			tag->num = num;
 			break;
 		}
 		if (!tag) {
e73&follow=1'>Move 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