sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit a449fb7b2558478092aaede341561cb825dbba83
parent a4cbdb093f9a351ae6213bdbe66fdd45331b14fe
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Mon, 13 Jun 2011 23:18:50 +0200

Small way to disable highlight syntax.
Diffstat:
config.def.h | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -1,7 +1,7 @@ /* A simplified way to customize */ #define HILIGHT_CURRENT 1 #define SHOW_NONPRINT 0 -#define HILIGHT_SYNTAX 1 /* TODO: implement this */ +#define HILIGHT_SYNTAX 1 /* Things unlikely to be changed, yet still in the config.h file */ static const bool isutf8 = TRUE; @@ -157,6 +157,7 @@ static Command cmds[] = { /* Use only f_ funcs that take Arg.v */ #define B "(^| |\t|\\(|\\)|\\[|\\]|\\{|\\}|$)" static Syntax syntaxes[] = { +#if HILIGHT_SYNTAX {"c", NULL, "\\.(c(pp|xx)?|h(pp|xx)?|cc)$", { NULL }, { /* HiRed */ "", /* HiGreen */ B"(for|if|while|do|else|case|default|switch|try|throw|catch|operator|new|delete)"B, @@ -221,6 +222,9 @@ static Syntax syntaxes[] = { /* LoRed */ "\"(\\\\.|[^\"])*\"", /* LoBlue */ "(//.*|/\\*([^*]|\\*[^/])*\\*/|/\\*([^*]|\\*[^/])*$|^([^/]|/[^*])*\\*/)", } }, +#else /* HILIGHT_SYNTAX */ +{"", NULL, "\0", { NULL }, { "\0", "\0", "\0", "\0", "\0", "\0", "\0", "\0" } } +#endif /* HILIGHT_SYNTAX */ }; /* Colors */