Keywords get highlighted incorrectly #505

This commit is contained in:
BADIM-PC\Vadim 2018-01-12 08:21:03 +03:00
parent 2126e3ce9e
commit 0f7d0f9882
1 changed files with 2 additions and 2 deletions

View File

@ -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++;