summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-05-10 17:31:30 -0400
committerJune McEnroe <june@causal.agency>2019-05-10 17:33:36 -0400
commit0a322cd0b39aa73f9b15fe99faaffaa7ac115ee0 (patch)
tree415310cc33c91a5d637b77b3eaeea815c29aa241 /bin
parentUse val instead of suboptarg (diff)
downloadsrc-0a322cd0b39aa73f9b15fe99faaffaa7ac115ee0.tar.gz
src-0a322cd0b39aa73f9b15fe99faaffaa7ac115ee0.zip
Highlight yacc and lex files as C
Their %-prefixed directives should probably be highlighted Macro.
Diffstat (limited to '')
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 9db51a65..866fc651 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -271,7 +271,7 @@ static const struct Language {
 	const struct Syntax *syntax;
 	size_t len;
 } Languages[] = {
-	{ "c",    "[.][ch]$", CSyntax, ARRAY_LEN(CSyntax) },
+	{ "c",    "[.][chly]$", CSyntax, ARRAY_LEN(CSyntax) },
 	{ "make", "[.]mk$|^Makefile$", MakeSyntax, ARRAY_LEN(MakeSyntax) },
 	{ "mdoc", "[.][1-9]$", MdocSyntax, ARRAY_LEN(MdocSyntax) },
 	{ "rust", "[.]rs$", RustSyntax, ARRAY_LEN(RustSyntax) },