From 0f7d0f98826e469866311ce9e163ecf2941b95b4 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Fri, 12 Jan 2018 08:21:03 +0300 Subject: [PATCH] Keywords get highlighted incorrectly #505 --- src/tic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tic.c b/src/tic.c index 3d25445..852ea31 100644 --- a/src/tic.c +++ b/src/tic.c @@ -1998,7 +1998,7 @@ void parseCode(const tic_script_config* config, const char* start, u8* color, co while(true) { - char c = *ptr; + char c = ptr[0]; if(blockCommentStart) { @@ -2135,7 +2135,7 @@ void parseCode(const tic_script_config* config, const char* start, u8* color, co ptr += strlen(config->singleComment); continue; } - else if(isalpha_(c) && ptr[-1] != '.') + else if(isalpha_(c)) { wordStart = ptr; ptr++;