Update NetBeans lexer so that state is restored while the user is typing.