The data type WORD and its relatives are not scoping/coloring.
I noticed in the tmLanguage file that instead WORLD appears. Maybe your ST variant supports some kind of WORLD type I am not aware of, so I have included a REGEX for it here:
If you did not intend WORLD as a type, remove the L? in WORL?D. :)
I also included any number of white space between POINTER or REF and the TO. I also included TOD and DT because CoDeSys supports those as aliases to TIME_OF_DAY and DATE_AND_TIME respectively.
The data type
WORD
and its relatives are not scoping/coloring.I noticed in the tmLanguage file that instead
WORLD
appears. Maybe your ST variant supports some kind ofWORLD
type I am not aware of, so I have included a REGEX for it here:If you did not intend
WORLD
as a type, remove theL?
inWORL?D
. :)I also included any number of white space between
POINTER
orREF
and theTO
. I also includedTOD
andDT
because CoDeSys supports those as aliases toTIME_OF_DAY
andDATE_AND_TIME
respectively.