Skip to content

Commit

Permalink
Use skip instead of scan in lex_line_comment
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysiek1507 committed Sep 14, 2023
1 parent db67a72 commit 72aa8e2
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 @@ -323,7 +323,7 @@ def lex_comment(ss, line, lines, str)
def lex_line_comment(ss, line, str)
while !ss.eos? do
case
when ss.scan(/\n/)
when ss.skip(/\n/)
return line + 1
else
str << ss.getch
Expand Down

0 comments on commit 72aa8e2

Please sign in to comment.