From b0a99acf5f8eaeecb11cb073c48ca7c06499b0d7 Mon Sep 17 00:00:00 2001 From: GrenderG Date: Fri, 12 May 2017 04:28:41 +0200 Subject: [PATCH] Now ':' is treated like a separator in order to highlight for example 'else:' statement in Python. --- tte.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tte.c b/tte.c index 69e2990..1875960 100644 --- a/tte.c +++ b/tte.c @@ -49,7 +49,7 @@ // Empty buffer #define ABUF_INIT {NULL, 0} // Version code -#define TTE_VERSION "0.0.4" +#define TTE_VERSION "0.0.5" // Length of a tab stop #define TTE_TAB_STOP 4 // Times to press Ctrl-Q before exiting @@ -578,7 +578,7 @@ int isSeparator(int c) { // appear in the second string. If so, it returns a pointer to the // character in the second string that matched. Otherwise, it // returns NULL. - return isspace(c) || c == '\0' || strchr(",.()+-/*=~%<>[];", c) != NULL; + return isspace(c) || c == '\0' || strchr(",.()+-/*=~%<>[]:;", c) != NULL; } int isAlsoNumber(int c) {