Updated lexer implementation for IDEA 14.

This was done for IDEA build 139.225.3