Fix lexer for subgraphs