From d8dc51bdc170dc484ab31b68de0df9101fcdce88 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 16 May 2023 17:12:24 +0900 Subject: [PATCH] Fix a typo --- lib/lrama/lexer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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