Defined Language "if" highlighting within wordsbrowsing

Example, the word “indifferent” would display as “indifferent”. Format would display as "Format".

This does not occur with the default languages, like CPP. What do I need to do to my defined language such that “for” and “if” would only highlight as its own whole word, and not as part of a larger word?

Having “if” defined within
<Keywords name=“Folders in code1, open”>if</Keywords>
makes the string “if” highlight within other words. This is especially annoying if it is within a word that is a keyword and should be highlighted differently. (I had “stiffness” - where the “if” part would be highlighted according to the definition above.

From your example screen shot I can see that you do not have anything in:
<Keywords name=“Folders in code1, open”></Keywords>

So I tried to not having any “folders in code”, and moved these to be just keywords instead. This worked well, and the highlighting now looks good.

The conclusion is that there is a bug with the highlighting when something is defined as “Folders in code”.