Usually, I'm working on ubuntu-12.10-x64 with IDEA 12. But also has Windows7 environment.
In Windows, IDEA can hightlight the regex string in Pattern.compile(regex) correctly.
But in ubuntu, it cannot recognize the string var in the compile() method.
I checked the settings in IDE settings -> intentions -> Declaration -> Check regexp is right.
but the preview window's content is not correct.
Is there something I missed?