Skip to content

Commit 04d6cce

Browse files
Earlopainschneems
authored andcommitted
Remove workaround for ripper not lexing the entire source
Maybe ripper fixed it since then. But prism also doesn't have this problem.
1 parent 1f4b8e5 commit 04d6cce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/syntax_suggest/lex_all.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module SyntaxSuggest
4-
# Lexes the whole source and wraps the tokens in `LexValue`
4+
# Lexes the whole source and wraps the tokens in `LexValue`.
55
#
66
# Example usage:
77
#
@@ -14,7 +14,6 @@ class LexAll
1414

1515
def initialize(source:)
1616
@lex = self.class.lex(source, 1)
17-
1817
last_lex = nil
1918
@lex.map! { |elem|
2019
last_lex = LexValue.new(elem[0].first, elem[1], elem[2], elem[3], last_lex)

0 commit comments

Comments
 (0)