As far as I know, you cannot change this. I cannot exactly say how it works in Eclipse, but usually the highlighting process consists of several steps. Basic highlighting can be provided after the lexical analysis. For a context sensitive highlighting like the one for local variables inside Module
, Block
, Function
or in your case Compile
, you need to parse the input.
If you are using the Workbench plugin for Eclipse, you can at least get an idea where and how this is implemented. In the plugins
directory (in OSX) inside your Eclipse installation path you should find directories for the Wolfram plugin. If you dig a bit in the lib
directory there, you'll find that an antlr
parser was created to parse Mathematica code. With the help of this parser highlighting and error/warning features are implemented and provided for Eclipse inside the MEET.jar
.
To change the behaviour for Compile
, you would have to change it inside the MEET code which you don't have access to since the jar
files contain (almost) only byte-code.