Update metrics computation based on groovy lexer.