Skip to content

Commit

Permalink
fix percent literal completion: %<#{here}>
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Jul 13, 2023
1 parent 2ef74ed commit 83c1eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/katakata_irb/completor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def self.analyze(code, binding = empty_binding)
last_opens = KatakataIrb::NestingParser.open_tokens(tokens)
closings = last_opens.map do |t|
case t.tok
when /\A%.[<>]\z/
when /\A%.?[<>]\z/
$/ + '>'
when '{', '#{', /\A%.?[{}]\z/
$/ + '}'
Expand Down

0 comments on commit 83c1eb0

Please sign in to comment.