Reference resolving for lexer states.
Pass the correct file to the parser.