So, I'm trying to get a single word highlighted. Now, normally I would have no problem with this, but I wanted to get fancy. Specifically, I wanted color words (such as grey) to show up in their color.
Currently I have tried a few things.
"\bgrey.+\b(?i)" doesn't work as it highlights the rest of the line after "grey".
"\bred.(?i)" semi works as it will highlight "red" and "reds", but not things such as "reddish".
"\bred(?i)" is what I've resorted to for the time being, as it at least highlights the color, if not any plural forms or extra suffixes.
Is there any way to highlight one single word and account for a suffix of any length, and then cut the trigger off at the next space? (Ideally, also cut it off in the event of a dash or colon or what have you.)
Currently I have tried a few things.
"\bgrey.+\b(?i)" doesn't work as it highlights the rest of the line after "grey".
"\bred.(?i)" semi works as it will highlight "red" and "reds", but not things such as "reddish".
"\bred(?i)" is what I've resorted to for the time being, as it at least highlights the color, if not any plural forms or extra suffixes.
Is there any way to highlight one single word and account for a suffix of any length, and then cut the trigger off at the next space? (Ideally, also cut it off in the event of a dash or colon or what have you.)