Skip to content

Commit

Permalink
Merge pull request #103 from nobu/fix-comment
Browse files Browse the repository at this point in the history
Fix comment in Lrama::Lexer#lex_comment [ci skip]
  • Loading branch information
yui-knk authored Sep 17, 2023
2 parents 08fa2b5 + c1fa8e4 commit 26c8b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lrama/lexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def lex_comment(ss, line, lines, str)
str << ss[0]
end

# Reach to end of input but quote does not match
# Reach to end of input but comment does not match
l = line - lines.first[1]
raise "Parse error (comment mismatch): #{ss.string.split("\n")[l]} \"#{ss.string[ss.pos]}\" (#{line}: #{ss.pos})"
end
Expand Down

0 comments on commit 26c8b37

Please sign in to comment.