diff --git a/lib/lrama/lexer.rb b/lib/lrama/lexer.rb index 5c958332..9d9b27dd 100644 --- a/lib/lrama/lexer.rb +++ b/lib/lrama/lexer.rb @@ -218,7 +218,7 @@ def lex_common(lines, tokens) l = line - lines.first[1] split = ss.string.split("\n") col = ss.pos - split[0...l].join("\n").length - raise "Parse error (unknow token): #{split[l]} \"#{ss.string[ss.pos]}\" (#{line}: #{col})" + raise "Parse error (unknown token): #{split[l]} \"#{ss.string[ss.pos]}\" (#{line}: #{col})" end end end