diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-05-01 15:25:02 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2024-05-01 16:57:29 -0400 |
commit | 5cd0abdfb58e3ff35d18ce87f1201582e0142d15 (patch) | |
tree | eeafdb3dd8bd050b9941560a9bbc755b758115ab /test/ruby | |
parent | fc8fb581cf8e86ee98a35d3e9af82eb1fda9c50f (diff) |
[PRISM] Simplify prism error highlighting
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_parse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index fe649cddb9..b8de2ba952 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -18,7 +18,7 @@ class TestParse < Test::Unit::TestCase end def test_else_without_rescue - assert_syntax_error(<<-END, %r":#{__LINE__+2}: else without rescue"o, [__FILE__, __LINE__+1]) + assert_syntax_error(<<-END, %r"(:#{__LINE__+2}:|#{__LINE__+2} \|.+?\n.+?\^~.+?;) else without rescue"o, [__FILE__, __LINE__+1]) begin else 42 |