summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/error_highlight/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/error_highlight/base.rb b/lib/error_highlight/base.rb
index 22e0bf0dc3..bc4a62c9d6 100644
--- a/lib/error_highlight/base.rb
+++ b/lib/error_highlight/base.rb
@@ -913,7 +913,7 @@ module ErrorHighlight
# ^^^
def prism_spot_def_for_name
location = @node.name_loc
- location = location.join(@node.operator_loc) if @node.operator_loc
+ location = @node.operator_loc.join(location) if @node.operator_loc
prism_location(location)
end