From 0d7bc06c3cfd5764c1aefca6620a73b7bed3733d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 30 Sep 2014 22:22:44 +0200 Subject: Improve some syntax highlighting rules --- config.def.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config.def.h') 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))", -- cgit v1.2.3