# File lib/saikuro.rb, line 82 def count_token(line_no,token) case token when TkSPACE, TkNL, TkRD_COMMENT # Do not count these as tokens when TkCOMMENT # Ignore this only for comments in a statement? # Ignore TkCOLON,TkCOLON2 and operators? like "." etc.. when TkRBRACK, TkRPAREN, TkRBRACE # Ignore the closing of an array/index/hash/paren # The opening is counted, but no more. # Thus [], () {} is counted as 1 token not 2. else # may want to filter out comments... @tokens_per_line[line_no] += 1 end end