aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-30 22:22:44 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-30 22:22:44 +0200
commit0d7bc06c3cfd5764c1aefca6620a73b7bed3733d (patch)
treeca297b52274a45f4d125f7f1199cd58438463107
parentbb7ada0f41bb82280817570ea9a2b963372e97c6 (diff)
downloadvis-0d7bc06c3cfd5764c1aefca6620a73b7bed3733d.tar.gz
vis-0d7bc06c3cfd5764c1aefca6620a73b7bed3733d.tar.xz
Improve some syntax highlighting rules
-rw-r--r--config.def.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index a9b4e21..8c41dbb 100644
--- a/config.def.h
+++ b/config.def.h
@@ -882,9 +882,9 @@ static Color colors[] = {
&colors[COLOR_COMMENT], \
}
-#define SYNTAX_LITERAL { \
- "('(\\\\.|.)')|(0x[0-9A-Fa-f]+|[0-9]+)", \
- &colors[COLOR_LITERAL], \
+#define SYNTAX_LITERAL { \
+ "('(\\\\.|.)')|"B"(0x[0-9A-Fa-f]+|[0-9]+)"B, \
+ &colors[COLOR_LITERAL], \
}
#define SYNTAX_STRING { \
@@ -919,7 +919,7 @@ static Syntax syntaxes[] = {{
SYNTAX_CONSTANT,
SYNTAX_BRACKET,
{
- "<[a-zA-Z0-9\\.-_]+>",
+ "<[a-zA-Z0-9\\.\\-_/]+\\.(c(pp|xx)?|h(pp|xx)?|cc)>",
&colors[COLOR_STRING],
},{
"(^#[\\t ]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma))",