Now ':' is treated like a separator in order to highlight for example 'else:' statement in Python.

This commit is contained in:
GrenderG committed 2017-05-12 04:28:41 +02:00
1 parent e042736775
commit b0a99acf5f
1 file changed
+2 -2
+2 -2
View File
@@ -49,7 +49,7 @@
// Empty buffer // Empty buffer
#define ABUF_INIT {NULL, 0} #define ABUF_INIT {NULL, 0}
// Version code // Version code
#define TTE_VERSION "0.0.4" #define TTE_VERSION "0.0.5"
// Length of a tab stop // Length of a tab stop
#define TTE_TAB_STOP 4 #define TTE_TAB_STOP 4
// Times to press Ctrl-Q before exiting // 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 // appear in the second string. If so, it returns a pointer to the
// character in the second string that matched. Otherwise, it // character in the second string that matched. Otherwise, it
// returns NULL. // returns NULL.
return isspace(c) || c == '\0' || strchr(",.()+-/*=~%<>[];", c) != NULL; return isspace(c) || c == '\0' || strchr(",.()+-/*=~%<>[]:;", c) != NULL;
} }
int isAlsoNumber(int c) { int isAlsoNumber(int c) {