summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-07 00:33:17 -0500
committerJune McEnroe <june@causal.agency>2019-02-07 00:33:17 -0500
commita9266d7787f2ac51ddceb6025135077e8152cb00 (patch)
tree9a2df7272b8f10fc0578d74ebcd476794054beee /bin
parentMove comments below strings in hi (diff)
downloadsrc-a9266d7787f2ac51ddceb6025135077e8152cb00.tar.gz
src-a9266d7787f2ac51ddceb6025135077e8152cb00.zip
Use subexpression highlight for system include paths
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 6c18b5f6..7e3a5117 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -53,7 +53,7 @@ static const struct Syntax CSyntax[] = {
 	{ Keyword, .subexp = 2, .pattern = CKB"(break|continue|goto|return)"CKB },
 	{ Keyword, .subexp = 2, .pattern = CKB"(case|default)"CKB },
 	{ Macro,   .pattern = "^#.*" },
-	{ String,  .pattern = "<[^[:blank:]=]*>" },
+	{ String,  .pattern = "^#include (<.*>)", .subexp = 1 },
 	{ String,  .pattern = "[LUu]?'([^']|\\\\')*'", },
 	{ String,  .pattern = "([LUu]|u8)?\"([^\"]|\\\\\")*\"", },
 	{ Comment, .pattern = "//.*", },