diff options
author | schneems <richard.schneeman+foo@gmail.com> | 2022-11-29 14:09:20 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-11-30 12:58:47 +0900 |
commit | d6e91784ab78c25e864869b05a149e7c9cfeab7d (patch) | |
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://github.com/ruby/syntax_suggest/pull/161
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6831
Diffstat (limited to 'lib/syntax_suggest')
-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
diff --git a/lib/syntax_suggest/capture_code_context.rb b/lib/syntax_suggest/capture_code_context.rb index 6439af4dde..7d6a550612 100644 --- a/lib/syntax_suggest/capture_code_context.rb +++ b/lib/syntax_suggest/capture_code_context.rb @@ -140,7 +140,7 @@ module SyntaxSuggest # However due to https://github.com/ruby/syntax_suggest/issues/32 # the problem line will be identified as: # - # ❯ class Dog # 1 + # > 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 + # > 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 diff --git a/lib/syntax_suggest/cli.rb b/lib/syntax_suggest/cli.rb index 9bc4fe6cd4..967f77bf70 100644 --- a/lib/syntax_suggest/cli.rb +++ b/lib/syntax_suggest/cli.rb @@ -92,8 +92,8 @@ module SyntaxSuggest # ... - ❯ 10 defdog - ❯ 15 end + > 10 defdog + > 15 end ENV options: diff --git a/lib/syntax_suggest/display_code_with_line_numbers.rb b/lib/syntax_suggest/display_code_with_line_numbers.rb index 23f4b2d1ee..a18d62e54b 100644 --- a/lib/syntax_suggest/display_code_with_line_numbers.rb +++ b/lib/syntax_suggest/display_code_with_line_numbers.rb @@ -14,8 +14,8 @@ module SyntaxSuggest # # => # 1 # 2 def cat - # ❯ 3 Dir.chdir - # ❯ 4 end + # > 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 diff --git a/lib/syntax_suggest/version.rb b/lib/syntax_suggest/version.rb index 02c8344f9f..f145074978 100644 --- a/lib/syntax_suggest/version.rb +++ b/lib/syntax_suggest/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module SyntaxSuggest - VERSION = "1.0.0" + VERSION = "1.0.1" end |