diff options
author | schneems <[email protected]> | 2022-11-29 14:09:20 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2022-11-30 12:58:47 +0900 |
commit | d6e91784ab78c25e864869b05a149e7c9cfeab7d () | |
tree | 9f6d98f11deeeff36f236c79db601f30e5f0acdf /lib/syntax_suggest | |
parent | 33a9a7fd8d22ea5d87789e64a931dd03d28d9407 (diff) |
Update SyntaxSuggest to use angle brackets `>`
``` $ ruby tool/sync_default_gems.rb syntax_suggest Sync ruby/syntax_suggest ``` https://.com/ruby/syntax_suggest/pull/161
Notes: Merged: https://.com/ruby/ruby/pull/6831
-rw-r--r-- | lib/syntax_suggest/capture_code_context.rb | 4 | ||||
-rw-r--r-- | lib/syntax_suggest/cli.rb | 4 | ||||
-rw-r--r-- | lib/syntax_suggest/display_code_with_line_numbers.rb | 6 | ||||
-rw-r--r-- | lib/syntax_suggest/version.rb | 2 |
4 files changed, 8 insertions, 8 deletions
@@ -140,7 +140,7 @@ module SyntaxSuggest # However due to https://.com/ruby/syntax_suggest/issues/32 # the problem line will be identified as: # - # ❯ class Dog # 1 # # Because lines 2, 3, and 4 are technically valid code and are expanded # first, deemed valid, and hidden. We need to un-hide the matching end @@ -200,7 +200,7 @@ module SyntaxSuggest # # the problem line will be identified as: # - # ❯ end # 4 # # This happens because lines 1, 2, and 3 are technically valid code and are expanded # first, deemed valid, and hidden. We need to un-hide the matching keyword on @@ -92,8 +92,8 @@ module SyntaxSuggest # ... - ❯ 10 defdog - ❯ 15 end ENV options: @@ -14,8 +14,8 @@ module SyntaxSuggest # # => # 1 # 2 def cat - # ❯ 3 Dir.chdir - # ❯ 4 end # 5 end # 6 class DisplayCodeWithLineNumbers @@ -50,7 +50,7 @@ module SyntaxSuggest private def format(contents:, number:, empty:, highlight: false) string = +"" string << if highlight - "❯ " else " " end @@ -1,5 +1,5 @@ # frozen_string_literal: true module SyntaxSuggest - VERSION = "1.0.0" end |