summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2023-07-17 11:41:46 +0200
committergit <[email protected]>2023-07-20 17:58:52 +0000
commit460c27dc15b5efc46a74cb2a7809ca3fa6ce72a7 ()
tree15e4da74dc45635380e17ea10d2f3ce4b52c2984 /lib
parentb41fc9b9a4ad2043a9fabce15814eade9b252569 (diff)
[ruby/syntax_suggest] Handle new eval source location
See https://bugs.ruby-lang.org/issues/19755 In Ruby 3.3, using `eval` without providing a source location will now default to `"(eval at #{__FILE__}:#{__LINE__})"`. https://.com/ruby/syntax_suggest/commit/8e5076472e
-rw-r--r--lib/syntax_suggest/pathname_from_message.rb2
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ module SyntaxSuggest
# # => "/tmp/scratch.rb"
#
class PathnameFromMessage
- EVAL_RE = /^\(eval\):\d+/
_RE = /^-:\d+/
attr_reader :name