Skip to content

Commit

Permalink
Refactor: use helper method instead of duplicate code in lexer (cryst…
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored and lbguilherme committed Oct 24, 2022
1 parent 44e1639 commit 6f26c12
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/compiler/crystal/syntax/lexer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1362,9 +1362,7 @@ module Crystal
start_pos = current_pos
end

while char != '\n' && char != '\0'
char = next_char_no_column_increment
end
skip_comment

if doc_buffer = @token.doc_buffer
doc_buffer << '\n'
Expand Down

0 comments on commit 6f26c12

Please sign in to comment.