Keywords get highlighted incorrectly #505
This commit is contained in:
@@ -1998,7 +1998,7 @@ void parseCode(const tic_script_config* config, const char* start, u8* color, co
|
|||||||
|
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
char c = *ptr;
|
char c = ptr[0];
|
||||||
|
|
||||||
if(blockCommentStart)
|
if(blockCommentStart)
|
||||||
{
|
{
|
||||||
@@ -2135,7 +2135,7 @@ void parseCode(const tic_script_config* config, const char* start, u8* color, co
|
|||||||
ptr += strlen(config->singleComment);
|
ptr += strlen(config->singleComment);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if(isalpha_(c) && ptr[-1] != '.')
|
else if(isalpha_(c))
|
||||||
{
|
{
|
||||||
wordStart = ptr;
|
wordStart = ptr;
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|||||||
Reference in New Issue
Block a user